botsi commited on
Commit
8ead2f6
·
verified ·
1 Parent(s): b74e576

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -86,7 +86,7 @@ with gr.Blocks() as demo:
86
  personalized_data = fetch_personalized_data(session_index)
87
  print(personalized_data)'''
88
 
89
- def bot(history, url_params):
90
  if "hi" in history[-1][0]:
91
  session_index = url_params.get('session_index')
92
  if session_index: # Check if session_index is not None or empty
@@ -105,6 +105,7 @@ with gr.Blocks() as demo:
105
  history[-1][1] = bot_message
106
  time.sleep(1)
107
  return history, session_index
 
108
 
109
  msg.submit(user, inputs=[msg, url_params, chatbot], outputs=[msg, chatbot], queue=False).then(
110
  fn=lambda x: bot(*x), inputs=[chatbot, url_params], outputs=[chatbot, None]
 
86
  personalized_data = fetch_personalized_data(session_index)
87
  print(personalized_data)'''
88
 
89
+ '''def bot(history, url_params):
90
  if "hi" in history[-1][0]:
91
  session_index = url_params.get('session_index')
92
  if session_index: # Check if session_index is not None or empty
 
105
  history[-1][1] = bot_message
106
  time.sleep(1)
107
  return history, session_index
108
+ '''
109
 
110
  msg.submit(user, inputs=[msg, url_params, chatbot], outputs=[msg, chatbot], queue=False).then(
111
  fn=lambda x: bot(*x), inputs=[chatbot, url_params], outputs=[chatbot, None]