Hugy-Bear commited on
Commit
d15bcdc
·
verified ·
1 Parent(s): deb5635

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,14 +61,14 @@ custom_role_conversions=None,
61
 
62
  # Import tool from Hub
63
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
64
- search = DuckDuckGoSearchTool()
65
 
66
  with open("prompts.yaml", 'r') as stream:
67
  prompt_templates = yaml.safe_load(stream)
68
 
69
  agent = CodeAgent(
70
  model=model,
71
- tools=[final_answer], ## add your tools here (don't remove final answer)
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,
 
61
 
62
  # Import tool from Hub
63
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
64
+ web_search_tool = DuckDuckGoSearchTool()
65
 
66
  with open("prompts.yaml", 'r') as stream:
67
  prompt_templates = yaml.safe_load(stream)
68
 
69
  agent = CodeAgent(
70
  model=model,
71
+ tools=[final_answer, image_generation_tool, web_search_tool, calculator_tool, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,