Spaces:
Sleeping
Sleeping
Update tools/web_search.py
Browse files- tools/web_search.py +1 -1
tools/web_search.py
CHANGED
|
@@ -3,7 +3,7 @@ from smolagents import tool
|
|
| 3 |
from ddgs import DDGS # 👈 au lieu de duckduckgo_search
|
| 4 |
|
| 5 |
|
| 6 |
-
class DuckDuckGoSearchTool(
|
| 7 |
name = "web_search"
|
| 8 |
description = "Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results."
|
| 9 |
inputs = {'query': {'type': 'string', 'description': 'The search query to perform.'}}
|
|
|
|
| 3 |
from ddgs import DDGS # 👈 au lieu de duckduckgo_search
|
| 4 |
|
| 5 |
|
| 6 |
+
class DuckDuckGoSearchTool(tool):
|
| 7 |
name = "web_search"
|
| 8 |
description = "Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results."
|
| 9 |
inputs = {'query': {'type': 'string', 'description': 'The search query to perform.'}}
|