shabawak commited on
Commit
8350b95
·
verified ·
1 Parent(s): 68613ce

fixed error with the tools

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
 
56
 
@@ -60,7 +60,7 @@ with open("prompts.yaml", 'r') as stream:
60
 
61
  agent = CodeAgent(
62
  model=model,
63
- tools=[final_answer, image_generation_tool, get_current_time_in_timezone, search_tool], ## add your tools here (don't remove final answer)
64
  max_steps=6,
65
  verbosity_level=1,
66
  grammar=None,
 
50
  # Import tool from Hub
51
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
52
 
53
+
54
 
55
 
56
 
 
60
 
61
  agent = CodeAgent(
62
  model=model,
63
+ tools=[final_answer, image_generation_tool, get_current_time_in_timezone, DuckDuckGoSearchTool()], ## add your tools here (don't remove final answer)
64
  max_steps=6,
65
  verbosity_level=1,
66
  grammar=None,