File size: 813 Bytes
63603f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# FastAPI Application

REST API for Milk Spoilage Classification.

## Files

- `app.py` - FastAPI application
- `requirements.txt` - Python dependencies
- `Dockerfile` - Docker configuration for deployment

## Local Development

```bash

# Install dependencies

pip install -r requirements.txt



# Run the server

python app.py

# or

uvicorn app:app --reload --port 7860

```

Visit http://localhost:7860/docs for interactive API documentation.

## Deployment to Hugging Face Spaces

1. Create a new Space with Docker SDK
2. Upload these files (renaming as needed):
   - `app.py``app.py`
   - `requirements.txt``requirements.txt`
   - `Dockerfile``Dockerfile`
   - `../../model/model.joblib``model.joblib`

See `docs/DEPLOYMENT_GUIDE.md` for detailed instructions.