Spaces:
Runtime error
Runtime error
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
|
|
@@ -57,7 +57,8 @@ tools = [
|
|
| 57 |
DuckDuckGoSearchTool(),
|
| 58 |
image_generation_tool,
|
| 59 |
get_current_time_in_timezone,
|
| 60 |
-
my_custom_tool
|
|
|
|
| 61 |
]
|
| 62 |
|
| 63 |
agent = CodeAgent(
|
|
|
|
| 1 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool, VisitWebpageTool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
|
|
| 57 |
DuckDuckGoSearchTool(),
|
| 58 |
image_generation_tool,
|
| 59 |
get_current_time_in_timezone,
|
| 60 |
+
my_custom_tool,
|
| 61 |
+
VisitWebpageTool()
|
| 62 |
]
|
| 63 |
|
| 64 |
agent = CodeAgent(
|