Update app.py
Browse files
app.py
CHANGED
@@ -27,15 +27,15 @@ def conversation(user_input, chat_history=[]):
|
|
27 |
for x, msg in enumerate(response):
|
28 |
if x%2 !=0:
|
29 |
msg = "ChatBot:" + msg
|
30 |
-
|
31 |
else:
|
32 |
-
|
33 |
|
34 |
print("Value of x:")
|
35 |
print(x)
|
36 |
print("Message:")
|
37 |
print(msg)
|
38 |
-
html += "<div class='msg {}'></div>".format(
|
39 |
html += "</div>"
|
40 |
print(html)
|
41 |
return html, chat_history
|
|
|
27 |
for x, msg in enumerate(response):
|
28 |
if x%2 !=0:
|
29 |
msg = "ChatBot:" + msg
|
30 |
+
clazz = "bot"
|
31 |
else:
|
32 |
+
clazz = "user"
|
33 |
|
34 |
print("Value of x:")
|
35 |
print(x)
|
36 |
print("Message:")
|
37 |
print(msg)
|
38 |
+
html += "<div class='msg {}'></div>".format(clazz, msg)
|
39 |
html += "</div>"
|
40 |
print(html)
|
41 |
return html, chat_history
|