Aramide commited on
Commit
1df87f3
·
verified ·
1 Parent(s): 29d2513

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -72,13 +72,15 @@ custom_role_conversions=None,
72
 
73
  # Import tool from Hub
74
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
 
 
75
 
76
  with open("prompts.yaml", 'r') as stream:
77
  prompt_templates = yaml.safe_load(stream)
78
 
79
  agent = CodeAgent(
80
  model=model,
81
- tools=[final_answer, get_current_time_in_timezone, web_search_tool], ## add your tools here (don't remove final answer)
82
  max_steps=6,
83
  verbosity_level=1,
84
  grammar=None,
 
72
 
73
  # Import tool from Hub
74
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
75
+ # Create an agent and register the tool
76
+ web_agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model="Qwen2.5-Coder-32B-Instruct")
77
 
78
  with open("prompts.yaml", 'r') as stream:
79
  prompt_templates = yaml.safe_load(stream)
80
 
81
  agent = CodeAgent(
82
  model=model,
83
+ tools=[final_answer, get_current_time_in_timezone, web_agent], ## add your tools here (don't remove final answer)
84
  max_steps=6,
85
  verbosity_level=1,
86
  grammar=None,