Spaces:
Sleeping
Sleeping
Removed DuckDuckGoSearchTool from tools
Browse files
tools.py
CHANGED
|
@@ -1,13 +1,7 @@
|
|
| 1 |
-
from smolagents import DuckDuckGoSearchTool
|
| 2 |
from smolagents import Tool
|
| 3 |
import random
|
| 4 |
from huggingface_hub import list_models
|
| 5 |
|
| 6 |
-
|
| 7 |
-
# Initialize the DuckDuckGo search tool
|
| 8 |
-
search_tool = DuckDuckGoSearchTool()
|
| 9 |
-
|
| 10 |
-
|
| 11 |
class WeatherInfoTool(Tool):
|
| 12 |
name = "weather_info"
|
| 13 |
description = "Fetches dummy weather information for a given location."
|
|
|
|
|
|
|
| 1 |
from smolagents import Tool
|
| 2 |
import random
|
| 3 |
from huggingface_hub import list_models
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
class WeatherInfoTool(Tool):
|
| 6 |
name = "weather_info"
|
| 7 |
description = "Fetches dummy weather information for a given location."
|