Update app.py
#16
by
Raghavm01
- opened
app.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
import random
|
3 |
-
from smolagents import GradioUI, CodeAgent,
|
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 =
|
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()
|