Tech-Meld commited on
Commit
92e925d
·
verified ·
1 Parent(s): 45785c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -1,10 +1,10 @@
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("Undi95/Meta-Llama-3-8B-Instruct-hf")
8
 
9
 
10
  def respond(
@@ -39,9 +39,9 @@ def respond(
39
  response += token
40
  yield response
41
 
42
- """
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
- """
45
  demo = gr.ChatInterface(
46
  respond,
47
  additional_inputs=[
@@ -60,4 +60,5 @@ demo = gr.ChatInterface(
60
 
61
 
62
  if __name__ == "__main__":
63
- demo.launch()
 
 
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(
 
39
  response += token
40
  yield response
41
 
42
+ ""
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
+ ""
45
  demo = gr.ChatInterface(
46
  respond,
47
  additional_inputs=[
 
60
 
61
 
62
  if __name__ == "__main__":
63
+ demo.launch()
64
+