ysharma HF staff commited on
Commit
4b963fb
ยท
1 Parent(s): d045ffb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -9
app.py CHANGED
@@ -148,15 +148,12 @@ title = "๐ŸŒ€Zephyr Playground๐ŸŽฎ"
148
  description = """
149
  Welcome to the Zephyr Playground! This interactive space lets you experience the prowess of two distinct Zephyr models โ€“ [Zephyr-7b-Alpha](https://huggingface.co/HuggingFaceH4/zephyr-7b-alpha) and [Zephyr-7b-Beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) โ€“ side by side. These models are products of fine-tuning the Mistral models.
150
 
151
- ๐Ÿ”Ž Dive deep into the nuances and performance of these models by comparing their responses in real-time.
152
-
153
- ๐Ÿ“– For a comprehensive understanding of the Zephyr models, delve into their [technical report](https://arxiv.org/abs/2310.16944) and experiment with the [official Zephyr demo](https://huggingfaceh4-zephyr-chat.hf.space/).
154
-
155
- ๐Ÿ›  If you wish to explore more chat models or set up your own interactive demo, visit the [Hugging Face's chat playground](https://huggingface.co/spaces/HuggingFaceH4/chat-playground).
156
-
157
- Note: All rights, including licensing and acceptable use policies, related to the Zephyr models, can be found on their respective model pages on Hugging Face.
158
  """
159
-
160
 
161
  css = """
162
  .gradio-container {
@@ -200,6 +197,8 @@ with gr.Blocks(css=css) as demo:
200
  chat_beta,
201
  chat_alpha])
202
 
 
 
203
  # Assign events to components
204
  textbox.submit(predict_beta, [textbox, chat_beta], [textbox, chat_beta])
205
  textbox.submit(predict_alpha, [textbox, chat_alpha], [textbox, chat_alpha])
@@ -212,5 +211,14 @@ with gr.Blocks(css=css) as demo:
212
  retry.click(retry_fun_beta, [chat_beta], [chat_beta])
213
  retry.click(retry_fun_alpha, [chat_alpha], [chat_alpha])
214
 
 
 
 
 
 
 
 
 
 
215
  # Launch the demo
216
- demo.launch( debug=True)
 
148
  description = """
149
  Welcome to the Zephyr Playground! This interactive space lets you experience the prowess of two distinct Zephyr models โ€“ [Zephyr-7b-Alpha](https://huggingface.co/HuggingFaceH4/zephyr-7b-alpha) and [Zephyr-7b-Beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) โ€“ side by side. These models are products of fine-tuning the Mistral models.
150
 
151
+ - ๐Ÿ”Ž Dive deep into the nuances and performance of these models by comparing their responses in real-time.
152
+ - ๐Ÿ“– For a comprehensive understanding of the Zephyr models, delve into their [technical report](https://arxiv.org/abs/2310.16944) and experiment with the [official Zephyr demo](https://huggingfaceh4-zephyr-chat.hf.space/).
153
+ - ๐Ÿ›  If you wish to explore more chat models or set up your own interactive demo, visit the [Hugging Face's chat playground](https://huggingface.co/spaces/HuggingFaceH4/chat-playground).
154
+ """
155
+ footnote = """Note: All rights, including licensing and acceptable use policies, related to the Zephyr models, can be found on their respective model pages on Hugging Face.
 
 
156
  """
 
157
 
158
  css = """
159
  .gradio-container {
 
197
  chat_beta,
198
  chat_alpha])
199
 
200
+ gr.Markdown(footnote)
201
+
202
  # Assign events to components
203
  textbox.submit(predict_beta, [textbox, chat_beta], [textbox, chat_beta])
204
  textbox.submit(predict_alpha, [textbox, chat_alpha], [textbox, chat_alpha])
 
211
  retry.click(retry_fun_beta, [chat_beta], [chat_beta])
212
  retry.click(retry_fun_alpha, [chat_alpha], [chat_alpha])
213
 
214
+ gr.Examples([
215
+ ['Hi! Who are you?'],
216
+ ['What is a meme?'],
217
+ ['Explain the plot of Cinderella in a sentence.'],
218
+ ['Assuming I am a huge alien species with the ability to consume helicopters, how long would it take me to eat one?'],
219
+ ],
220
+ textbox)
221
+
222
+
223
  # Launch the demo
224
+ demo.launch(debug=True)