Spaces:
Runtime error
Runtime error
updated more tools and fixed issue with search tool
Browse files
app.py
CHANGED
@@ -53,6 +53,7 @@ model = HfApiModel(
|
|
53 |
|
54 |
# Import tool from Hub
|
55 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
|
56 |
|
57 |
with open("prompts.yaml", "r") as stream:
|
58 |
prompt_templates = yaml.safe_load(stream)
|
@@ -61,7 +62,9 @@ agent = CodeAgent(
|
|
61 |
model=model,
|
62 |
tools=[
|
63 |
final_answer,
|
64 |
-
|
|
|
|
|
65 |
], ## add your tools here (don't remove final answer)
|
66 |
max_steps=6,
|
67 |
verbosity_level=1,
|
|
|
53 |
|
54 |
# Import tool from Hub
|
55 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
56 |
+
search_tool = DuckDuckGoSearchTool()
|
57 |
|
58 |
with open("prompts.yaml", "r") as stream:
|
59 |
prompt_templates = yaml.safe_load(stream)
|
|
|
62 |
model=model,
|
63 |
tools=[
|
64 |
final_answer,
|
65 |
+
search_tool,
|
66 |
+
image_generation_tool,
|
67 |
+
get_current_time_in_timezone,
|
68 |
], ## add your tools here (don't remove final answer)
|
69 |
max_steps=6,
|
70 |
verbosity_level=1,
|