Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,7 +198,7 @@ class BasicAgent:
|
|
| 198 |
answer = openrouter_inference(question_with_prompt)
|
| 199 |
except Exception as e:
|
| 200 |
print(f"Error calling OpenRouter: {e}")
|
| 201 |
-
answer = "Sorry, I couldn't get an answer from the model."
|
| 202 |
print(f"Agent returning answer: {answer.strip()}")
|
| 203 |
return answer.strip()
|
| 204 |
# # Fix: handle dict or string
|
|
|
|
| 198 |
answer = openrouter_inference(question_with_prompt)
|
| 199 |
except Exception as e:
|
| 200 |
print(f"Error calling OpenRouter: {e}")
|
| 201 |
+
answer = f"Sorry, I couldn't get an answer from the model {e}."
|
| 202 |
print(f"Agent returning answer: {answer.strip()}")
|
| 203 |
return answer.strip()
|
| 204 |
# # Fix: handle dict or string
|