car-view-classifier / README.md
jayvatliq's picture
Upload folder using huggingface_hub
6e73df5 verified
|
Raw
History Blame Contribute Delete
706 Bytes
---
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>.