Spaces:
Sleeping
Sleeping
|
Download README.md from KnowingFly/depression-detection-api: direct link, hf CLI and curl.
- Browser
- Download file 899 Bytes
-
https://huggingface.co/spaces/KnowingFly/depression-detection-api/resolve/main/README.md
- Command line
-
hf download hf://spaces/KnowingFly/depression-detection-api/README.md
-
curl -L -o README.md https://huggingface.co/spaces/KnowingFly/depression-detection-api/resolve/main/README.md
899 Bytes
| title: Depression Detection API | |
| emoji: 🧠 | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: docker | |
| pinned: false | |
| license: mit | |
| # Depression Detection API | |
| API for detecting depression from facial images using machine learning. | |
| ## Endpoints | |
| | Endpoint | Method | Description | | |
| |----------|--------|-------------| | |
| | `/` | GET | API info | | |
| | `/health` | GET | Health check | | |
| | `/predict` | POST | Predict depression from image | | |
| | `/docs` | GET | Interactive API documentation | | |
| ## Usage | |
| ### Health Check | |
| ```bash | |
| curl https://knowingfly-depression-detection-api.hf.space/health | |
| ``` | |
| ### Prediction | |
| ```bash | |
| curl -X POST "https://knowingfly-depression-detection-api.hf.space/predict" \ | |
| -F "file=@your_image.jpg" | |
| ``` | |
| ### Response Format | |
| ```json | |
| { | |
| "prediction": "depression" | "neutral", | |
| "confidence": 0.85 | |
| } | |
| ``` | |
| ## Technology Stack | |
| - FastAPI | |
| - TensorFlow/Keras | |
| - OpenCV (Face Detection) | |
| - Docker | |