Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ model_id='meta-llama/Meta-Llama-3-8B-Instruct',
|
|
| 45 |
custom_role_conversions=None,
|
| 46 |
)
|
| 47 |
|
| 48 |
-
|
| 49 |
# Import tool from Hub
|
| 50 |
image_generation_tool = load_tool("m-ric/text-to-image", trust_remote_code=True)
|
| 51 |
|
|
@@ -54,7 +54,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 54 |
|
| 55 |
agent = CodeAgent(
|
| 56 |
model=model,
|
| 57 |
-
tools=[image_generation_tool, get_current_time_in_timezone, final_answer], ## add your tools here (don't remove final answer)
|
| 58 |
max_steps=6,
|
| 59 |
verbosity_level=1,
|
| 60 |
grammar=None,
|
|
|
|
| 45 |
custom_role_conversions=None,
|
| 46 |
)
|
| 47 |
|
| 48 |
+
search_tool = DuckDuckGoSearchTool()
|
| 49 |
# Import tool from Hub
|
| 50 |
image_generation_tool = load_tool("m-ric/text-to-image", trust_remote_code=True)
|
| 51 |
|
|
|
|
| 54 |
|
| 55 |
agent = CodeAgent(
|
| 56 |
model=model,
|
| 57 |
+
tools=[search_tool, image_generation_tool, get_current_time_in_timezone, final_answer], ## add your tools here (don't remove final answer)
|
| 58 |
max_steps=6,
|
| 59 |
verbosity_level=1,
|
| 60 |
grammar=None,
|