thegeek13242
api done
b2898f0
raw
history blame
157 Bytes
from fastapi import FastAPI
import infer
app = FastAPI()
@app.post("/predict")
async def predict(text: str):
return {"prediction": infer.predict(text)}