from fastapi import FastAPI | |
import infer | |
app = FastAPI() | |
async def predict(text: str): | |
return {"prediction": infer.predict(text)} |
from fastapi import FastAPI | |
import infer | |
app = FastAPI() | |
async def predict(text: str): | |
return {"prediction": infer.predict(text)} |