VictorHueni commited on
Commit
c52ca60
·
verified ·
1 Parent(s): 6c050e9

remove conflicting DuckDuckGoSearchTool import tools and add image_generation_tool in the tools array

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
@@ -59,7 +59,7 @@ with open("prompts.yaml", 'r') as stream:
59
 
60
  agent = CodeAgent(
61
  model=model,
62
- tools=[get_current_time_in_timezone, duckduckgo_search, webpage_visit, final_answer], ## add your tools here (don't remove final answer)
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,
 
1
+ from smolagents import CodeAgent,HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
 
59
 
60
  agent = CodeAgent(
61
  model=model,
62
+ tools=[get_current_time_in_timezone, duckduckgo_search, webpage_visit, image_generation_tool, final_answer], ## add your tools here (don't remove final answer)
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,