Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import gradio
|
2 |
import os
|
3 |
import json
|
4 |
import requests
|
@@ -149,6 +149,19 @@ def retry_fun_alpha(chat_history_alpha ):
|
|
149 |
_, updated_chat_history_alpha = predict_alpha(message, chat_history_alpha)
|
150 |
return updated_chat_history_alpha
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
# Create chatbot components
|
153 |
chat_beta = gr.Chatbot(label="zephyr-7b-beta")
|
154 |
chat_alpha = gr.Chatbot(label="zephyr-7b-alpha")
|
@@ -162,6 +175,8 @@ undo = gr.Button('↩️Undo', variant='secondary')
|
|
162 |
|
163 |
# Layout the components using Gradio Blocks API
|
164 |
with gr.Blocks() as demo:
|
|
|
|
|
165 |
with gr.Row():
|
166 |
chat_beta.render()
|
167 |
chat_alpha.render()
|
|
|
1 |
+
import gradio as gr
|
2 |
import os
|
3 |
import json
|
4 |
import requests
|
|
|
149 |
_, updated_chat_history_alpha = predict_alpha(message, chat_history_alpha)
|
150 |
return updated_chat_history_alpha
|
151 |
|
152 |
+
title = "🌀Zephyr Playground🎮"
|
153 |
+
description = """
|
154 |
+
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.
|
155 |
+
|
156 |
+
🔎 Dive deep into the nuances and performance of these models by comparing their responses in real-time.
|
157 |
+
|
158 |
+
📖 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/).
|
159 |
+
|
160 |
+
🛠 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).
|
161 |
+
|
162 |
+
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.
|
163 |
+
"""
|
164 |
+
|
165 |
# Create chatbot components
|
166 |
chat_beta = gr.Chatbot(label="zephyr-7b-beta")
|
167 |
chat_alpha = gr.Chatbot(label="zephyr-7b-alpha")
|
|
|
175 |
|
176 |
# Layout the components using Gradio Blocks API
|
177 |
with gr.Blocks() as demo:
|
178 |
+
gr.HTML(f'<h1><center> {title} </center></h1>')
|
179 |
+
gr.Markdown(description)
|
180 |
with gr.Row():
|
181 |
chat_beta.render()
|
182 |
chat_alpha.render()
|