Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -373,7 +373,7 @@ async def adv_web_search(
|
|
| 373 |
|
| 374 |
# 4. Get the FastAI's response using FastAI service
|
| 375 |
try:
|
| 376 |
-
response = await asyncio.to_thread(fastai(model=model,
|
| 377 |
except Exception as e:
|
| 378 |
raise HTTPException(status_code=500, detail=f"Error during FastAI request: {e}")
|
| 379 |
|
|
|
|
| 373 |
|
| 374 |
# 4. Get the FastAI's response using FastAI service
|
| 375 |
try:
|
| 376 |
+
response = await asyncio.to_thread(fastai(model=model, system=system_prompt).get_response, ai_prompt)
|
| 377 |
except Exception as e:
|
| 378 |
raise HTTPException(status_code=500, detail=f"Error during FastAI request: {e}")
|
| 379 |
|