znacer commited on
Commit
a7e3193
·
unverified ·
1 Parent(s): 011c741

visit webpage

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -1,4 +1,11 @@
1
- from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
 
 
 
 
 
 
 
2
  import datetime
3
  import requests
4
  import pytz
@@ -39,6 +46,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
39
 
40
 
41
  web_search = DuckDuckGoSearchTool()
 
42
  final_answer = FinalAnswerTool()
43
 
44
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
@@ -63,6 +71,7 @@ agent = CodeAgent(
63
  tools=[
64
  final_answer,
65
  web_search,
 
66
  ], ## add your tools here (don't remove final answer)
67
  max_steps=6,
68
  verbosity_level=1,
 
1
+ from smolagents import (
2
+ CodeAgent,
3
+ DuckDuckGoSearchTool,
4
+ HfApiModel,
5
+ VisitWebpageTool,
6
+ load_tool,
7
+ tool,
8
+ )
9
  import datetime
10
  import requests
11
  import pytz
 
46
 
47
 
48
  web_search = DuckDuckGoSearchTool()
49
+ visit_webpage = VisitWebpageTool()
50
  final_answer = FinalAnswerTool()
51
 
52
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
 
71
  tools=[
72
  final_answer,
73
  web_search,
74
+ visit_webpage,
75
  ], ## add your tools here (don't remove final answer)
76
  max_steps=6,
77
  verbosity_level=1,