Spaces:
Sleeping
Sleeping
| title: Car View Classifier | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: docker | |
| app_port: 8000 | |
| pinned: false | |
| # Car View Classifier β Backend | |
| FastAPI + YOLO service that classifies car images by viewing angle. | |
| ## Endpoints | |
| - `POST /api/classify-img` β multipart upload (`files`), returns | |
| classification + annotated image paths | |
| - `GET /files/...` β static serving for annotated detection images | |
| ## Configuration | |
| Environment variables: | |
| - `CORS_ORIGINS` β comma-separated list of allowed origins (set this | |
| to your frontend URL when deploying) | |
| ## Local development | |
| From the repo root: | |
| ```bash | |
| docker compose up --build | |
| ``` | |
| Backend will be available at <http://localhost:8000>. | |