File size: 398 Bytes
0ef2ce9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
---
license: apache-2.0
---
# FastAPI Inference Template ๐
A lightweight template to wrap any ๐ค Transformers model as an API with FastAPI.
## Endpoints
- `GET /` โ health check
- `POST /predict` โ run inference
## Example Usage
```bash
curl -X POST "http://localhost:8000/predict" \
-H "Content-Type: application/json" \
-d '{"text": "Markets are looking strong today"}' |