Spaces:
Sleeping
Sleeping
File size: 899 Bytes
3705867 7306a70 3705867 7306a70 3705867 7306a70 3705867 7306a70 3705867 7306a70 3705867 7306a70 3705867 7306a70 3705867 7306a70 3705867 7306a70 3705867 7306a70 3705867 | 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | ---
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
|