Jaehan commited on
Commit
979f78b
1 Parent(s): c4fe73d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="Bot: " + 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"],