Jaehan commited on
Commit
97916e2
·
1 Parent(s): e7899d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- class = "bot"
31
  else:
32
- class = "user"
33
 
34
  print("Value of x:")
35
  print(x)
36
  print("Message:")
37
  print(msg)
38
- html += "<div class='msg {}'></div>".format(class, msg)
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