File size: 706 Bytes
7de6eca
 
6e73df5
7de6eca
6e73df5
7de6eca
6e73df5
7de6eca
 
 
6e73df5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
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>.