2.91 kB
5 files
Updated 3 months ago
Name
Size
.gitattributes1.52 kB
xet
Dockerfile175 Bytes
xet
README.md398 Bytes
xet
app.py777 Bytes
xet
requirements.txt43 Bytes
xet
README.md

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

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

Contributors