ruixianxue commited on
Commit
4a7e92e
·
verified ·
1 Parent(s): 9df6add

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -47,6 +47,8 @@ custom_role_conversions=None,
47
  )
48
 
49
 
 
 
50
  # Import tool from Hub
51
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
52
 
@@ -57,6 +59,8 @@ agent = CodeAgent(
57
  model=model,
58
  tools=[final_answer,
59
  get_current_time_in_timezone,
 
 
60
  ], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
 
47
  )
48
 
49
 
50
+ search_tool = DuckDuckGoSearchTool()
51
+
52
  # Import tool from Hub
53
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
54
 
 
59
  model=model,
60
  tools=[final_answer,
61
  get_current_time_in_timezone,
62
+ search_tool,
63
+ image_generation_tool,
64
  ], ## add your tools here (don't remove final answer)
65
  max_steps=6,
66
  verbosity_level=1,