Spaces:
Sleeping
Sleeping
fix tool instatiation
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
|
|
| 53 |
with open("prompts.yaml", 'r') as stream:
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
| 55 |
|
| 56 |
-
new_tool =
|
| 57 |
agent = CodeAgent(
|
| 58 |
model=model,
|
| 59 |
tools=[final_answer, new_tool], ## add your tools here (don't remove final answer)
|
|
|
|
| 53 |
with open("prompts.yaml", 'r') as stream:
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
| 55 |
|
| 56 |
+
new_tool = DuckDuckGoSearchTool()
|
| 57 |
agent = CodeAgent(
|
| 58 |
model=model,
|
| 59 |
tools=[final_answer, new_tool], ## add your tools here (don't remove final answer)
|