DangMinh21 commited on
Commit
2eee623
·
verified ·
1 Parent(s): 6babb32

Add more tools for Agents

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -4,6 +4,7 @@ import requests
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
 
7
 
8
  from Gradio_UI import GradioUI
9
 
@@ -99,7 +100,9 @@ agent = CodeAgent(
99
  model=model,
100
  tools=[final_answer,
101
  get_current_time_in_timezone,
102
- get_weather], ## add your tools here (don't remove final answer)
 
 
103
  max_steps=6,
104
  verbosity_level=1,
105
  grammar=None,
 
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
+ from tools.visit_webpage import VisitWebpageTool
8
 
9
  from Gradio_UI import GradioUI
10
 
 
100
  model=model,
101
  tools=[final_answer,
102
  get_current_time_in_timezone,
103
+ get_weather,
104
+ DuckDuckGoSearchTool,
105
+ VisitWebpageTool], ## add your tools here (don't remove final answer)
106
  max_steps=6,
107
  verbosity_level=1,
108
  grammar=None,