Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,15 +52,16 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
52 |
|
53 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
54 |
try:
|
|
|
55 |
# agent = BasicAgent()
|
56 |
# tools=tools, model=model, additional_authorized_imports=["requests", "bs4"], max_steps=20
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
)
|
64 |
except Exception as e:
|
65 |
print(f"Error instantiating agent: {e}")
|
66 |
return f"Error initializing agent: {e}", None
|
|
|
52 |
|
53 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
54 |
try:
|
55 |
+
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=InferenceClientModel())
|
56 |
# agent = BasicAgent()
|
57 |
# tools=tools, model=model, additional_authorized_imports=["requests", "bs4"], max_steps=20
|
58 |
+
# agent = CodeAgent(
|
59 |
+
# model=model,
|
60 |
+
# tools=tools,
|
61 |
+
# max_steps=10, # Set the maximum number of steps here
|
62 |
+
# additional_authorized_imports=["requests", "bs4"],
|
63 |
+
# verbosity_level=2
|
64 |
+
# )
|
65 |
except Exception as e:
|
66 |
print(f"Error instantiating agent: {e}")
|
67 |
return f"Error initializing agent: {e}", None
|