Dochee commited on
Commit
5d5cd24
1 Parent(s): 11f605e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -55,7 +55,7 @@ def converse(user_input, chat_history=[]):
55
  print (mesg)
56
 
57
  html += "<div class='mesg {}'> {}</div>".format(clazz, mesg)
58
- html += "<div>"
59
  print(html)
60
  return html, chat_history
61
 
@@ -66,11 +66,9 @@ import gradio as grad
66
 
67
  css = """
68
  .mychat {display:flex;flex-direction:column}
69
- .mesg {padding:5px;margin-bottom:5px;border-
70
- radius:5px;width:75%}
71
  .mesg.user {background-color:lightblue;color:white}
72
- .mesg.alicia {background-color:orange;color:white,align-
73
- self:self-end}
74
  .footer {display:none !important}
75
  """
76
  text = grad.inputs.Textbox(placeholder="Lets chat")
 
55
  print (mesg)
56
 
57
  html += "<div class='mesg {}'> {}</div>".format(clazz, mesg)
58
+ html += "</div>"
59
  print(html)
60
  return html, chat_history
61
 
 
66
 
67
  css = """
68
  .mychat {display:flex;flex-direction:column}
69
+ .mesg {padding:5px;margin-bottom:5px;border-radius:5px;width:75%}
 
70
  .mesg.user {background-color:lightblue;color:white}
71
+ .mesg.alicia {background-color:orange;color:white,align-self:self-end}
 
72
  .footer {display:none !important}
73
  """
74
  text = grad.inputs.Textbox(placeholder="Lets chat")