Mtchmann commited on
Commit
9554d4d
·
verified ·
1 Parent(s): a8e5cd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -1,10 +1,18 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
 
 
 
 
 
 
 
 
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
7
- client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
8
 
9
 
10
  def respond(
@@ -64,13 +72,6 @@ if __name__ == "__main__":
64
  demo.launch()
65
 
66
 
67
- # Import necessary libraries
68
- import random
69
- from smolagents import CodeAgent, InferenceClientModel
70
-
71
- # Import our custom tools from their modules
72
- from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
73
- from retriever import load_guest_dataset
74
 
75
 
76
  # Initialize the web serarch tool
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
+ # Import necessary libraries
5
+ import random
6
+ from smolagents import CodeAgent, InferenceClientModel
7
+
8
+ # Import our custom tools from their modules
9
+ from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
10
+ from retriever import load_guest_dataset
11
+
12
  """
13
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
14
  """
15
+ client = InferenceClientModel()
16
 
17
 
18
  def respond(
 
72
  demo.launch()
73
 
74
 
 
 
 
 
 
 
 
75
 
76
 
77
  # Initialize the web serarch tool