Update app.py
Browse files
app.py
CHANGED
@@ -31,11 +31,11 @@ from smolagents import CodeAgent
|
|
31 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
32 |
try:
|
33 |
agent = CodeAgent(
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
)
|
39 |
|
40 |
except Exception as e:
|
41 |
print(f"Error instantiating agent: {e}")
|
|
|
31 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
32 |
try:
|
33 |
agent = CodeAgent(
|
34 |
+
tools=[DuckDuckGoSearchTool()],
|
35 |
+
model=InferenceClientModel("HuggingFaceH4/zephyr-7b-beta"),
|
36 |
+
max_steps=5,
|
37 |
+
verbosity_level=2
|
38 |
+
)
|
39 |
|
40 |
except Exception as e:
|
41 |
print(f"Error instantiating agent: {e}")
|