Spaces:
Sleeping
Sleeping
| #!/usr/bin/env python3 | |
| """Entry point for HuggingFace Spaces deployment""" | |
| import sys | |
| import os | |
| # Add src directory to Python path | |
| sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src")) | |
| # Import and run the app | |
| from app import demo | |
| if __name__ == "__main__": | |
| # HF Spaces automatically handles server_name and server_port | |
| # Use show_error=True for better debugging in HF Spaces | |
| demo.launch(show_error=True, server_name="0.0.0.0", server_port=7860) | |