Spaces:
Sleeping
Sleeping
john
commited on
Commit
•
a0281b0
1
Parent(s):
170c560
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,10 @@ theme = gr.themes.Soft(
|
|
7 |
primary_hue=gr.themes.Color("#ededed", "#fee2e2", "#fecaca", "#fca5a5", "#f87171", "#ef4444", "#dc2626", "#b91c1c", "#991b1b", "#7f1d1d", "#6c1e1e"),
|
8 |
neutral_hue="red",
|
9 |
)
|
|
|
10 |
with gr.Blocks(theme=theme) as demo:
|
11 |
-
gr.HTML(
|
|
|
12 |
Dolly = gr.Chatbot().style(height=500)
|
13 |
msg = gr.Textbox()
|
14 |
clear = gr.Button("Clear")
|
@@ -23,5 +25,4 @@ with gr.Blocks(theme=theme) as demo:
|
|
23 |
|
24 |
msg.submit(respond, [msg, Dolly], [msg, Dolly])
|
25 |
clear.click(lambda: None, None, Dolly, queue=False)
|
26 |
-
gr.HTML("The model is great with language but might fail answering questions with numbers")
|
27 |
demo.launch(debug=True)
|
|
|
7 |
primary_hue=gr.themes.Color("#ededed", "#fee2e2", "#fecaca", "#fca5a5", "#f87171", "#ef4444", "#dc2626", "#b91c1c", "#991b1b", "#7f1d1d", "#6c1e1e"),
|
8 |
neutral_hue="red",
|
9 |
)
|
10 |
+
title = """<h1 align="center">Chat with awesome Dolly V2 3B model.</h1><br><h2 align="center">🏃♂️💨Streaming with Transformers & Gradio💪</h2>"""
|
11 |
with gr.Blocks(theme=theme) as demo:
|
12 |
+
gr.HTML(title)
|
13 |
+
gr.HTML("The model is great with language but might fail answering questions with numbers")
|
14 |
Dolly = gr.Chatbot().style(height=500)
|
15 |
msg = gr.Textbox()
|
16 |
clear = gr.Button("Clear")
|
|
|
25 |
|
26 |
msg.submit(respond, [msg, Dolly], [msg, Dolly])
|
27 |
clear.click(lambda: None, None, Dolly, queue=False)
|
|
|
28 |
demo.launch(debug=True)
|