shabawak commited on
Commit
68613ce
·
verified ·
1 Parent(s): 369f86d

fixed an error with the VisitWebPageTool

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent,DuckDuckGoSearchTool,VisitWebPageTool, HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
@@ -52,7 +52,7 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
52
 
53
  search_tool = DuckDuckGoSearchTool()
54
 
55
- view_web_page_tool = VisitWebPageTool()
56
 
57
 
58
  with open("prompts.yaml", 'r') as stream:
@@ -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, view_web_page_tool], ## add your tools here (don't remove final answer)
64
  max_steps=6,
65
  verbosity_level=1,
66
  grammar=None,
 
1
+ from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
 
52
 
53
  search_tool = DuckDuckGoSearchTool()
54
 
55
+
56
 
57
 
58
  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,