Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
| 9 |
# --- Constants ---
|
|
@@ -18,8 +18,10 @@ class BasicAgent:
|
|
| 18 |
|
| 19 |
search_tool = DuckDuckGoSearchTool()
|
| 20 |
|
|
|
|
|
|
|
| 21 |
self.agent = CodeAgent(
|
| 22 |
-
tools=[search_tool],
|
| 23 |
model=model,
|
| 24 |
)
|
| 25 |
|
|
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool, HfApiModel
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
| 9 |
# --- Constants ---
|
|
|
|
| 18 |
|
| 19 |
search_tool = DuckDuckGoSearchTool()
|
| 20 |
|
| 21 |
+
web_tool = VisitWebpageTool()
|
| 22 |
+
|
| 23 |
self.agent = CodeAgent(
|
| 24 |
+
tools=[search_tool, web_tool],
|
| 25 |
model=model,
|
| 26 |
)
|
| 27 |
|