AU
Size: a a a
AU
AU
М
SK
SK
SK
SK
М
М
TN
IP
SK
IP
SK
M
from fastapi import BackgroundTasks, FastAPI
app = FastAPI()
async def train():
pass # very long
@app.post("/train_model/")
async def train_model(background_tasks: BackgroundTasks):
background_tasks.add_task(train)
return {"message": "Fitting the model in progress..."}
NT
TN
O
MF