Spaces:
Sleeping
Sleeping
:bug: remove DuckDuckgo and support ✨ images generation
Browse files
app.py
CHANGED
|
@@ -85,7 +85,6 @@ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may
|
|
| 85 |
custom_role_conversions=None,
|
| 86 |
)
|
| 87 |
|
| 88 |
-
|
| 89 |
# Import tool from Hub
|
| 90 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 91 |
|
|
@@ -94,7 +93,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 94 |
|
| 95 |
agent = CodeAgent(
|
| 96 |
model=model,
|
| 97 |
-
tools=[final_answer,
|
| 98 |
max_steps=6,
|
| 99 |
verbosity_level=1,
|
| 100 |
grammar=None,
|
|
|
|
| 85 |
custom_role_conversions=None,
|
| 86 |
)
|
| 87 |
|
|
|
|
| 88 |
# Import tool from Hub
|
| 89 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 90 |
|
|
|
|
| 93 |
|
| 94 |
agent = CodeAgent(
|
| 95 |
model=model,
|
| 96 |
+
tools=[final_answer,image_generation_tool,get_cat_images], ## add your tools here (don't remove final answer)
|
| 97 |
max_steps=6,
|
| 98 |
verbosity_level=1,
|
| 99 |
grammar=None,
|