Spaces:
Sleeping
Sleeping
Jonathan Grizou
commited on
Commit
·
4ced09a
1
Parent(s):
12db329
test
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ custom_role_conversions=None,
|
|
44 |
)
|
45 |
|
46 |
# Import tool from Hub
|
47 |
-
|
48 |
|
49 |
# "Qwen/Qwen2.5-72B-Instruct"
|
50 |
|
@@ -53,7 +53,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
53 |
|
54 |
agent = CodeAgent(
|
55 |
model=model,
|
56 |
-
tools=[final_answer, get_current_time_in_timezone, eat_pizza],
|
57 |
max_steps=6,
|
58 |
verbosity_level=1,
|
59 |
grammar=None,
|
|
|
44 |
)
|
45 |
|
46 |
# Import tool from Hub
|
47 |
+
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
48 |
|
49 |
# "Qwen/Qwen2.5-72B-Instruct"
|
50 |
|
|
|
53 |
|
54 |
agent = CodeAgent(
|
55 |
model=model,
|
56 |
+
tools=[final_answer, DuckDuckGoSearchTool(), image_generation_tool, get_current_time_in_timezone, eat_pizza],
|
57 |
max_steps=6,
|
58 |
verbosity_level=1,
|
59 |
grammar=None,
|