Spaces:
Build error
Build error
Download api/index.py from akoulapure/cattllassifier-coding: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/akoulapure/cattllassifier-coding/resolve/main/api/index.py
- Command line
-
hf download hf://spaces/akoulapure/cattllassifier-coding/api/index.py
-
curl -L -o index.py https://huggingface.co/spaces/akoulapure/cattllassifier-coding/resolve/main/api/index.py
332 Bytes
| import sys | |
| from pathlib import Path | |
| # Add project root to python path to allow backend package imports | |
| PROJECT_ROOT = Path(__file__).resolve().parent.parent | |
| sys.path.insert(0, str(PROJECT_ROOT)) | |
| # Import the FastAPI application | |
| from backend.app.main import app | |
| # Vercel Serverless requires the application to be exposed as `app` | |