Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ class BasicAgent:
|
|
| 22 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model, add_base_tools=True)
|
| 23 |
agent_response = agent.run(question)
|
| 24 |
except Exception as e:
|
| 25 |
-
|
| 26 |
return f"AGENT ERROR: {e}"
|
| 27 |
|
| 28 |
print(f"Agent returning answer: {agent_response}")
|
|
|
|
| 22 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model, add_base_tools=True)
|
| 23 |
agent_response = agent.run(question)
|
| 24 |
except Exception as e:
|
| 25 |
+
print(f"Error running agent: {e}")
|
| 26 |
return f"AGENT ERROR: {e}"
|
| 27 |
|
| 28 |
print(f"Agent returning answer: {agent_response}")
|