botsi commited on
Commit
d76ff68
·
verified ·
1 Parent(s): bb317cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,7 +72,7 @@ type `read query`
72
  def user(user_message, url_params, history):
73
  return "", history + [[user_message, None]]
74
 
75
- def bot(history, url_params):
76
  global session_index
77
  if "read query" in history[-1][0]:
78
  session_index = url_params.get('session_index')
@@ -89,7 +89,7 @@ type `read query`
89
  bot_message = random.choice(["Yes", "No"])
90
  history[-1][1] = bot_message
91
  time.sleep(1)
92
- return history
93
 
94
 
95
  msg.submit(user, inputs=[msg, url_params, chatbot], outputs=[msg, chatbot], queue=False).then(
 
72
  def user(user_message, url_params, history):
73
  return "", history + [[user_message, None]]
74
 
75
+ def bot(history, url_params):
76
  global session_index
77
  if "read query" in history[-1][0]:
78
  session_index = url_params.get('session_index')
 
89
  bot_message = random.choice(["Yes", "No"])
90
  history[-1][1] = bot_message
91
  time.sleep(1)
92
+ return history
93
 
94
 
95
  msg.submit(user, inputs=[msg, url_params, chatbot], outputs=[msg, chatbot], queue=False).then(