Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ tools = [DuckDuckGoSearchTool()]
|
|
16 |
|
17 |
class BasicAgent(CodeAgent):
|
18 |
def __init__(self):
|
19 |
-
self = CodeAgent(tools=tools, model=model, additional_authorized_imports=["requests", "bs4"])
|
20 |
print("BasicAgent initialized as CodeAgent.")
|
21 |
def __call__(self, question: str) -> str:
|
22 |
# Run the agent with the query
|
|
|
16 |
|
17 |
class BasicAgent(CodeAgent):
|
18 |
def __init__(self):
|
19 |
+
self = CodeAgent(tools=tools, model=model, additional_authorized_imports=["requests", "bs4"], max_steps=20)
|
20 |
print("BasicAgent initialized as CodeAgent.")
|
21 |
def __call__(self, question: str) -> str:
|
22 |
# Run the agent with the query
|