Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def converse(user_input, chat_history=[]):
|
|
26 |
html = "<div class='mybot'>"
|
27 |
for x, mesg in enumerate(response):
|
28 |
if x%2!=0 :
|
29 |
-
mesg="
|
30 |
clazz="bot"
|
31 |
else :
|
32 |
clazz="user"
|
@@ -49,7 +49,7 @@ css = """
|
|
49 |
.mesg.bot {background-color:orange;color:white,align-self:self-end}
|
50 |
.footer {display:none !important}
|
51 |
"""
|
52 |
-
text=gr.inputs.Textbox(placeholder="Let's start a chat...")
|
53 |
gr.Interface(fn=converse,
|
54 |
theme="default",
|
55 |
inputs=[text, "state"],
|
|
|
26 |
html = "<div class='mybot'>"
|
27 |
for x, mesg in enumerate(response):
|
28 |
if x%2!=0 :
|
29 |
+
mesg="BOT: " + mesg
|
30 |
clazz="bot"
|
31 |
else :
|
32 |
clazz="user"
|
|
|
49 |
.mesg.bot {background-color:orange;color:white,align-self:self-end}
|
50 |
.footer {display:none !important}
|
51 |
"""
|
52 |
+
text=gr.inputs.Textbox(label="User Input", placeholder="Let's start a chat...")
|
53 |
gr.Interface(fn=converse,
|
54 |
theme="default",
|
55 |
inputs=[text, "state"],
|