Spaces:
Runtime error
Runtime error
update layout and headline
Browse files
app.py
CHANGED
|
@@ -68,8 +68,11 @@ def chat(curr_system_message, history):
|
|
| 68 |
return partial_text
|
| 69 |
|
| 70 |
|
|
|
|
|
|
|
|
|
|
| 71 |
with gr.Blocks() as demo:
|
| 72 |
-
gr.
|
| 73 |
gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/RedPajama-Chat-3B?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space to skip the queue and run in a private space</center>''')
|
| 74 |
chatbot = gr.Chatbot().style(height=500)
|
| 75 |
with gr.Row():
|
|
@@ -91,6 +94,7 @@ with gr.Blocks() as demo:
|
|
| 91 |
stop.click(fn=None, inputs=None, outputs=None, cancels=[
|
| 92 |
submit_event, submit_click_event], queue=False)
|
| 93 |
clear.click(lambda: None, None, [chatbot], queue=False)
|
|
|
|
| 94 |
|
| 95 |
demo.queue(max_size=32, concurrency_count=2)
|
| 96 |
demo.launch(debug=True)
|
|
|
|
| 68 |
return partial_text
|
| 69 |
|
| 70 |
|
| 71 |
+
title = """<h1 align="center">🔥RedPajama-INCITE-Chat-3B-v1</h1><br><h2 align="center">🏃♂️💨Streaming with Transformers & Gradio💪</h2>"""
|
| 72 |
+
description = """<h3 align="center">This is a RedPajama Chat model fine-tuned using data from Dolly 2.0 and Open Assistant over the RedPajama-INCITE-Base-3B-v1 base model.</h3>"""
|
| 73 |
+
|
| 74 |
with gr.Blocks() as demo:
|
| 75 |
+
gr.HTML(title)
|
| 76 |
gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/RedPajama-Chat-3B?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space to skip the queue and run in a private space</center>''')
|
| 77 |
chatbot = gr.Chatbot().style(height=500)
|
| 78 |
with gr.Row():
|
|
|
|
| 94 |
stop.click(fn=None, inputs=None, outputs=None, cancels=[
|
| 95 |
submit_event, submit_click_event], queue=False)
|
| 96 |
clear.click(lambda: None, None, [chatbot], queue=False)
|
| 97 |
+
gr.HTML(description)
|
| 98 |
|
| 99 |
demo.queue(max_size=32, concurrency_count=2)
|
| 100 |
demo.launch(debug=True)
|