smjain commited on
Commit
e889b71
·
1 Parent(s): cccac01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ def converse(user_input, chat_history=[]):
30
  # write some HTML
31
  html = "<div class='mybot'>"
32
  for x, mesg in enumerate(response):
33
- if x%2==0 :
34
  mesg="Alicia:"+mesg
35
  clazz="alicia"
36
  clazz="user"
@@ -40,7 +40,7 @@ def converse(user_input, chat_history=[]):
40
  print(x)
41
  print("message")
42
  print (mesg)
43
- mesg="Alicia:"+mesg
44
  html += "<div class='mesg {}'> {}</div>".format(clazz, mesg)
45
  html += "</div>"
46
  print(html)
 
30
  # write some HTML
31
  html = "<div class='mybot'>"
32
  for x, mesg in enumerate(response):
33
+ if x%2!=0 :
34
  mesg="Alicia:"+mesg
35
  clazz="alicia"
36
  clazz="user"
 
40
  print(x)
41
  print("message")
42
  print (mesg)
43
+
44
  html += "<div class='mesg {}'> {}</div>".format(clazz, mesg)
45
  html += "</div>"
46
  print(html)