Spaces:
Runtime error
Runtime error
Add DuckDuckGoSearchTool()
Browse files
tools.py
CHANGED
|
@@ -3,10 +3,8 @@ from smolagents import Tool
|
|
| 3 |
import random
|
| 4 |
from huggingface_hub import list_models
|
| 5 |
|
| 6 |
-
|
| 7 |
# Initialize the DuckDuckGo search tool
|
| 8 |
-
|
| 9 |
-
|
| 10 |
|
| 11 |
class WeatherInfoTool(Tool):
|
| 12 |
name = "weather_info"
|
|
|
|
| 3 |
import random
|
| 4 |
from huggingface_hub import list_models
|
| 5 |
|
|
|
|
| 6 |
# Initialize the DuckDuckGo search tool
|
| 7 |
+
search_tool = DuckDuckGoSearchTool()
|
|
|
|
| 8 |
|
| 9 |
class WeatherInfoTool(Tool):
|
| 10 |
name = "weather_info"
|