Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,6 +47,10 @@ custom_role_conversions=None,
|
|
| 47 |
)
|
| 48 |
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
# Import tool from Hub
|
| 51 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 52 |
|
|
@@ -56,7 +60,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 56 |
agent = CodeAgent(
|
| 57 |
model=model,
|
| 58 |
##tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 59 |
-
tools=[final_answer,
|
| 60 |
max_steps=6,
|
| 61 |
verbosity_level=1,
|
| 62 |
grammar=None,
|
|
|
|
| 47 |
)
|
| 48 |
|
| 49 |
|
| 50 |
+
# Instantiate the duck_tool
|
| 51 |
+
duck_tool = DuckDuckGoSearchTool()
|
| 52 |
+
|
| 53 |
+
|
| 54 |
# Import tool from Hub
|
| 55 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 56 |
|
|
|
|
| 60 |
agent = CodeAgent(
|
| 61 |
model=model,
|
| 62 |
##tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 63 |
+
tools=[final_answer, duck_tool, image_generation_tool, get_current_time_in_timezone, my_custom_tool],
|
| 64 |
max_steps=6,
|
| 65 |
verbosity_level=1,
|
| 66 |
grammar=None,
|