#!/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)