Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,13 +1,13 @@
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 DuckDuckGoSearchTool, 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()
 
1
  import gradio as gr
2
  import random
3
+ from smolagents import GradioUI, CodeAgent, InferenceClientModel
4
 
5
  # Import our custom tools from their modules
6
  from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
7
  from retriever import load_guest_dataset
8
 
9
  # Initialize the Hugging Face model
10
+ model = InferenceClientModel()
11
 
12
  # Initialize the web search tool
13
  search_tool = DuckDuckGoSearchTool()