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