Raven7 commited on
Commit
e14ae17
·
verified ·
1 Parent(s): c7b4cd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
- from huggingface_hub import InferenceClient
3
  import os
4
 
5
- client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1", token=os.getenv("HF_TOKEN"))
6
 
7
  def respond(
8
  message,
@@ -52,5 +52,5 @@ demo = gr.ChatInterface(
52
  ],
53
  )
54
 
55
- if __name__ == "__main__":
56
  demo.launch()
 
1
  import gradio as gr
2
+ from huggingfacehub import InferenceClient
3
  import os
4
 
5
+ client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1", token=os.getenv("HFTOKEN"))
6
 
7
  def respond(
8
  message,
 
52
  ],
53
  )
54
 
55
+ if __name == "__main":
56
  demo.launch()