Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ async def fast_ai_endpoint(user: str, model: str = "llama3-70b", system: str = "
|
|
27 |
FastAI.model = model
|
28 |
FastAI.system = system
|
29 |
try:
|
30 |
-
response = await asyncio.to_thread(
|
31 |
return JSONResponse(content={"response": response})
|
32 |
except Exception as e:
|
33 |
raise HTTPException(status_code=500, detail=f"Error during Snova AI request: {e}")
|
|
|
27 |
FastAI.model = model
|
28 |
FastAI.system = system
|
29 |
try:
|
30 |
+
response = await asyncio.to_thread(FastAI.generate_response, user)
|
31 |
return JSONResponse(content={"response": response})
|
32 |
except Exception as e:
|
33 |
raise HTTPException(status_code=500, detail=f"Error during Snova AI request: {e}")
|