mattibuzzo13 commited on
Commit
178e5a6
·
verified ·
1 Parent(s): 4da0657

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ custom_role_conversions=None,
50
  # Import tool from Hub
51
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
52
 
53
- search_tool = DuckDuckGoSearchTool()
54
 
55
  with open("prompts.yaml", 'r') as stream:
56
  prompt_templates = yaml.safe_load(stream)
@@ -61,7 +61,7 @@ agent = CodeAgent(
61
  my_custom_tool,
62
  get_current_time_in_timezone,
63
  image_generation_tool,
64
- search_tool], ## add your tools here (don't remove final answer)
65
  max_steps=6,
66
  verbosity_level=1,
67
  grammar=None,
 
50
  # Import tool from Hub
51
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
52
 
53
+ web_search = DuckDuckGoSearchTool()
54
 
55
  with open("prompts.yaml", 'r') as stream:
56
  prompt_templates = yaml.safe_load(stream)
 
61
  my_custom_tool,
62
  get_current_time_in_timezone,
63
  image_generation_tool,
64
+ web_search], ## add your tools here (don't remove final answer)
65
  max_steps=6,
66
  verbosity_level=1,
67
  grammar=None,