Abhaykoul commited on
Commit
f42c57d
·
verified ·
1 Parent(s): 4b89220

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(fast_ai.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}")
 
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}")