Spaces:
Sleeping
Sleeping
File size: 462 Bytes
3edc934 5b9d3f9 a57db65 5b9d3f9 | 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 | ---
title: Depression Text Classifier API
sdk: docker
app_port: 7860
---
## FastAPI inference API (Hugging Face Spaces)
### Endpoints
- `GET /health`
- `POST /predict` with JSON: `{ "text": "..." }`
### Local run
```bash
pip install -r requirements.txt
uvicorn app:app --reload
```
### Deploy on Hugging Face Spaces
Create a **Docker** Space and push these files:
- `app.py`
- `requirements.txt`
- `Dockerfile`
- `depression_model.pt` (tracked with Git LFS)
|