| """ | |
| FleetMind MCP - Hugging Face Spaces Entry Point | |
| This is the main entry point for the HF Space deployment | |
| """ | |
| import sys | |
| from pathlib import Path | |
| # Add current directory to path | |
| sys.path.insert(0, str(Path(__file__).parent)) | |
| # Import and launch the Gradio app | |
| from ui.app import create_interface | |
| if __name__ == "__main__": | |
| print("=" * 60) | |
| print("FleetMind MCP - Starting on Hugging Face Spaces") | |
| print("=" * 60) | |
| # Create and launch the interface | |
| app = create_interface() | |
| app.launch( | |
| server_name="0.0.0.0", | |
| server_port=7860, | |
| share=False, | |
| show_error=True, | |
| show_api=False # Disable API docs to avoid schema parsing bug | |
| ) | |