metadata
title: Depression Text Classifier API
sdk: docker
app_port: 7860
FastAPI inference API (Hugging Face Spaces)
Endpoints
GET /healthPOST /predictwith JSON:{ "text": "..." }
Local run
pip install -r requirements.txt
uvicorn app:app --reload
Deploy on Hugging Face Spaces
Create a Docker Space and push these files:
app.pyrequirements.txtDockerfiledepression_model.pt(tracked with Git LFS)