Spaces:
Sleeping
Sleeping
Imported DuckDuckGoSearchTool directly from smolagents
Browse files
app.py
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
-
from smolagents import GradioUI, CodeAgent, HfApiModel
|
| 4 |
|
| 5 |
# Import our custom tools from their modules
|
| 6 |
-
from tools import
|
| 7 |
from retriever import load_guest_dataset
|
| 8 |
|
| 9 |
# Initialize the Hugging Face model
|
| 10 |
model = HfApiModel()
|
| 11 |
|
| 12 |
# Initialize the web search tool
|
| 13 |
-
|
| 14 |
|
| 15 |
# Initialize the weather tool
|
| 16 |
weather_info_tool = WeatherInfoTool()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
+
from smolagents import GradioUI, CodeAgent, HfApiModel, DuckDuckGoSearchTool
|
| 4 |
|
| 5 |
# Import our custom tools from their modules
|
| 6 |
+
from tools import WeatherInfoTool, HubStatsTool
|
| 7 |
from retriever import load_guest_dataset
|
| 8 |
|
| 9 |
# Initialize the Hugging Face model
|
| 10 |
model = HfApiModel()
|
| 11 |
|
| 12 |
# Initialize the web search tool
|
| 13 |
+
search_tool = DuckDuckGoSearchTool()
|
| 14 |
|
| 15 |
# Initialize the weather tool
|
| 16 |
weather_info_tool = WeatherInfoTool()
|