mkblvcreates's picture
|
download
raw
398 Bytes
metadata
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

curl -X POST "http://localhost:8000/predict" \
     -H "Content-Type: application/json" \
     -d '{"text": "Markets are looking strong today"}'

Xet Storage Details

Size:
398 Bytes
ยท
Xet hash:
fae138df22753e4ee9b2d0f8b6d3753598e23f16c6bcdfe4839c0d180ae23493

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.