File size: 579 Bytes
c04be7a 98f8d3d c04be7a 98f8d3d c04be7a 98f8d3d c04be7a 98f8d3d c04be7a 98f8d3d c04be7a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/usr/bin/env python3
"""
HuggingFace Spaces entry point for AURORA AI Fight Detection System
"""
import os
import sys
from pathlib import Path
# Add the project root to Python path
project_root = Path(__file__).parent
sys.path.insert(0, str(project_root))
# Load environment variables
from dotenv import load_dotenv
load_dotenv()
# Import the main FastAPI app
from backend.api.main import app
# Expose the app for HuggingFace Spaces
if __name__ == "__main__":
import uvicorn
port = int(os.environ.get("PORT", 7860))
uvicorn.run(app, host="0.0.0.0", port=port)
|