--- 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 .