Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,15 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 65 |
|
| 66 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 67 |
try:
|
| 68 |
-
agent = CodeAgent(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
except Exception as e:
|
| 70 |
print(f"Error instantiating agent: {e}")
|
| 71 |
return f"Error initializing agent: {e}", None
|
|
|
|
| 65 |
|
| 66 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 67 |
try:
|
| 68 |
+
agent = CodeAgent(model=model,
|
| 69 |
+
tools=[DuckDuckGoSearchTool(), VisitWebpageTool(), final_answer],
|
| 70 |
+
max_steps=6,
|
| 71 |
+
verbosity_level=1,
|
| 72 |
+
grammar=None,
|
| 73 |
+
planning_interval=None,
|
| 74 |
+
name=None,
|
| 75 |
+
description=None,
|
| 76 |
+
prompt_templates=prompt_templates)
|
| 77 |
except Exception as e:
|
| 78 |
print(f"Error instantiating agent: {e}")
|
| 79 |
return f"Error initializing agent: {e}", None
|