Spaces:
Sleeping
Sleeping
change from HfApiModel to InferenceClientModel
Browse files12345678910111213import gradio as grimport randomfrom smolagents import GradioUI, CodeAgent, HfApiModel# Import our custom tools from their modulesfrom tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsToolfrom retriever import load_guest_dataset# Initialize the Hugging Face modelmodel = HfApiModel()# Initialize the web search toolsearch_tool = DuckDuckGoSearchTool()123456789101112131415import gradio as grimport random#from smolagents import GradioUI, CodeAgent, HfApiModelfrom smolagents import GradioUI, CodeAgent, InferenceClientModel# Import our custom tools from their modulesfrom tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsToolfrom retriever import load_guest_dataset# Initialize the Hugging Face model#model = HfApiModel()model = InferenceClientModel()# Initialize the web search toolsearch_tool = DuckDuckGoSearchTool()
app.py+4-2