Spaces:
Running
Running
| """ | |
| Hugging Face Space Entry Point | |
| This file is the main entry point for Hugging Face Spaces deployment | |
| """ | |
| import os | |
| import sys | |
| # Add the project root to the Python path | |
| sys.path.insert(0, os.path.dirname(__file__)) | |
| from src.ui.app import create_app | |
| # Create the Gradio app | |
| app = create_app() | |
| # For Hugging Face Spaces, we need to make the app available at the module level | |
| # The Space will look for a variable named "app" | |
| demo = app | |
| if __name__ == "__main__": | |
| # This is only used if running directly, not in Hugging Face Spaces | |
| app.launch( | |
| server_name="0.0.0.0", | |
| server_port=7860, | |
| show_error=True, | |
| share=False | |
| ) |