Spaces:
Running
on
Zero
Running
on
Zero
File size: 999 Bytes
0614860 b833b2f 4c79bd7 b833b2f 4c79bd7 0614860 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
#!/usr/bin/env python3
"""
MeetingNotes - Hugging Face Spaces Version
Intelligent meeting analysis with Voxtral AI, optimized for Zero GPU with native MCP support.
"""
import gradio as gr
import os
from pathlib import Path
# Import custom modules
from src.ui.spaces_interface import create_spaces_interface
def main():
"""Main entry point for the Hugging Face Spaces app with native MCP server."""
# Create the Gradio interface with native MCP support (Gradio 6 compatible)
interface = create_spaces_interface()
# Launch with specific settings for HF Spaces and MCP server enabled (Gradio 6)
# Note: theme and css are configured in gr.Blocks() constructor, not in launch()
port = int(os.environ.get("GRADIO_SERVER_PORT", 7860))
interface.launch(
server_name="0.0.0.0",
server_port=port,
share=False,
show_error=True,
quiet=False,
mcp_server=True # Enable native MCP server
)
if __name__ == "__main__":
main() |