Spaces:
Sleeping
Sleeping
Update tools/web_search.py
Browse files- tools/web_search.py +4 -3
tools/web_search.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
from smolagents
|
| 3 |
-
import duckduckgo_search
|
|
|
|
| 4 |
|
| 5 |
class DuckDuckGoSearchTool(Tool):
|
| 6 |
name = "web_search"
|
|
|
|
| 1 |
+
# tools/web_search.py
|
| 2 |
+
from smolagents import tool
|
| 3 |
+
from ddgs import DDGS # 👈 au lieu de duckduckgo_search
|
| 4 |
+
|
| 5 |
|
| 6 |
class DuckDuckGoSearchTool(Tool):
|
| 7 |
name = "web_search"
|