repst commited on
Commit
db89ff9
·
verified ·
1 Parent(s): 7793512

add visit webpage tool

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,4 +1,5 @@
1
- from smolagents import CodeAgent, DuckDuckGoSearchTool, PythonInterpreterTool, HfApiModel, load_tool, tool
 
2
  import datetime
3
  import requests
4
  import pytz
@@ -56,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
56
  agent = CodeAgent(
57
  model=model,
58
  tools=[image_generation_tool, my_custom_tool, get_current_time_in_timezone,
59
- DuckDuckGoSearchTool(), PythonInterpreterTool(), final_answer], ## add your tools here (don't remove final answer)
60
  max_steps=6,
61
  verbosity_level=1,
62
  grammar=None,
 
1
+ from smolagents import (CodeAgent, DuckDuckGoSearchTool, PythonInterpreterTool, VisitWebpageTool,
2
+ HfApiModel, load_tool, tool)
3
  import datetime
4
  import requests
5
  import pytz
 
57
  agent = CodeAgent(
58
  model=model,
59
  tools=[image_generation_tool, my_custom_tool, get_current_time_in_timezone,
60
+ DuckDuckGoSearchTool(), PythonInterpreterTool(), VisitWebpageTool(), final_answer], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,