Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ class BasicAgent:
|
|
18 |
def __call__(self, question: str) -> str:
|
19 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
20 |
try:
|
21 |
-
model = model=HfApiModel()
|
22 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model, add_base_tools=True)
|
23 |
agent_response = agent.run(question)
|
24 |
except Exception as e:
|
|
|
18 |
def __call__(self, question: str) -> str:
|
19 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
20 |
try:
|
21 |
+
model = model=HfApiModel()
|
22 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model, add_base_tools=True)
|
23 |
agent_response = agent.run(question)
|
24 |
except Exception as e:
|