| """ | |
| Entry point for Hugging Face Spaces deployment | |
| This file imports and runs the main FastAPI application from the backend | |
| """ | |
| import sys | |
| import os | |
| from pathlib import Path | |
| # Add the current directory to Python path so we can import from backend | |
| sys.path.insert(0, str(Path(__file__).parent)) | |
| # Import the FastAPI app from backend.main | |
| from backend.main import app | |
| # The app variable is what HF Spaces will use to run the application | |
| # No need to run uvicorn here - HF Spaces handles that automatically | |