Update app.py
Browse files
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
|
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 |
-
|
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)
|