wiknwo commited on
Commit
30119da
·
verified ·
1 Parent(s): 633aa78

Imported DuckDuckGoSearchTool directly from smolagents

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 search_tool, 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()
 
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()