2.91 kB
5 files
Updated 3 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .gitattributes | 1.52 kB xet | 818ba6de | |
| Dockerfile | 175 Bytes xet | 7f19a2fe | |
| README.md | 398 Bytes xet | fae138df | |
| app.py | 777 Bytes xet | 8eb688d6 | |
| requirements.txt | 43 Bytes xet | 3c1b0709 |
FastAPI Inference Template 🚀
A lightweight template to wrap any 🤗 Transformers model as an API with FastAPI.
Endpoints
GET /→ health checkPOST /predict→ run inference
Example Usage
curl -X POST "http://localhost:8000/predict" \
-H "Content-Type: application/json" \
-d '{"text": "Markets are looking strong today"}'
- Total size
- 2.91 kB
- Files
- 5
- Last updated
- Aug 22
- Pre-warmed CDN
- US EU US EU