Spaces:
Build error
Build error
dennis-fast
commited on
Commit
•
b730ad7
1
Parent(s):
5ca7e26
Update app.py
Browse files
app.py
CHANGED
@@ -43,14 +43,15 @@ def predict(input, history=[]):
|
|
43 |
css = """
|
44 |
.chatbox {display:flex;flex-direction:column}
|
45 |
.msg {padding:4px;margin-bottom:4px;border-radius:4px;width:80%}
|
46 |
-
.msg.user {background-color:cornflowerblue;color:white}
|
47 |
-
.msg.bot {background-color:lightgray;align-self:self-end}
|
48 |
.footer {display:none !important}
|
49 |
"""
|
50 |
|
51 |
gr.Interface(fn=predict,
|
|
|
52 |
title="DialoGPT-large",
|
53 |
-
inputs=["
|
54 |
outputs=["html", "state"],
|
55 |
css=css
|
56 |
).launch()
|
|
|
43 |
css = """
|
44 |
.chatbox {display:flex;flex-direction:column}
|
45 |
.msg {padding:4px;margin-bottom:4px;border-radius:4px;width:80%}
|
46 |
+
.msg.user {background-color:cornflowerblue;color:white;margin-right:10px}
|
47 |
+
.msg.bot {background-color:lightgray;align-self:self-end;margin-left:10px}
|
48 |
.footer {display:none !important}
|
49 |
"""
|
50 |
|
51 |
gr.Interface(fn=predict,
|
52 |
+
theme="default",
|
53 |
title="DialoGPT-large",
|
54 |
+
inputs=[gr.inputs.Textbox(placeholder="How are you?"), "state"],
|
55 |
outputs=["html", "state"],
|
56 |
css=css
|
57 |
).launch()
|