Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
@@ -67,7 +67,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 67 |
|
| 68 |
agent = CodeAgent(
|
| 69 |
model=model,
|
| 70 |
-
tools=[final_answer, extract_text_from_pdf, DuckDuckGoSearchTool(), days_ago], ## add your tools here (don't remove final answer)
|
| 71 |
max_steps=10,
|
| 72 |
verbosity_level=1,
|
| 73 |
grammar=None,
|
|
|
|
| 1 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool, HfApiModel, load_tool, tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
|
|
| 67 |
|
| 68 |
agent = CodeAgent(
|
| 69 |
model=model,
|
| 70 |
+
tools=[final_answer, extract_text_from_pdf, DuckDuckGoSearchTool(), VisitWebpageTool(), days_ago], ## add your tools here (don't remove final answer)
|
| 71 |
max_steps=10,
|
| 72 |
verbosity_level=1,
|
| 73 |
grammar=None,
|