Spaces:
Sleeping
Sleeping
File size: 475 Bytes
248f723 2fe88e9 3229c47 248f723 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/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)
|