Spaces:
Paused
Paused
Update app.py
Browse files372 unmodified lines373374375376377378379372 unmodified lines# 4. Get the FastAI's response using FastAI servicetry:response = await asyncio.to_thread(FastAI(model=model, system_prompt=system_prompt).get_response, ai_prompt)except Exception as e:raise HTTPException(status_code=500, detail=f"Error during FastAI request: {e}")372 unmodified lines373374375376377378379372 unmodified lines# 4. Get the FastAI's response using FastAI servicetry:response = await asyncio.to_thread(fastai(model=model, system_prompt=system_prompt).get_response, ai_prompt)except Exception as e:raise HTTPException(status_code=500, detail=f"Error during FastAI request: {e}")
app.py+1-1