Spaces:
Sleeping
Sleeping
| """ | |
| Main application entry point for Multi-Agent System on HuggingFace | |
| """ | |
| import os | |
| import sys | |
| from pathlib import Path | |
| # Add py directory to path | |
| sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'py')) | |
| # Import and create the Gradio interface directly | |
| from frontend.gradio_app import PeerToPeerApp, create_gradio_interface | |
| # Launch the app | |
| if __name__ == "__main__": | |
| # Create and launch the interface | |
| app = create_gradio_interface() | |
| app.launch( | |
| server_name="0.0.0.0", | |
| server_port=7860, | |
| share=True, | |
| show_error=True | |
| ) |