waseem11's picture
Upload README.md
3edc934 verified
|
Raw
History Blame Contribute Delete
462 Bytes
metadata
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

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)