dammy commited on
Commit
16aa822
·
1 Parent(s): 2995def

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,7 +86,7 @@ def run_query(file, history, query):
86
  history = history.append(result)
87
 
88
  print(history)
89
- return history
90
 
91
 
92
 
@@ -121,7 +121,7 @@ with gr.Blocks() as demo:
121
 
122
  # Event handler for uploading a PDF
123
  btn.upload(fn=upload_pdf, inputs=[btn], outputs=[output])
124
- txt.submit(run_query, [btn, chatbot, txt], [chatbot,])
125
  #.then(
126
  # generate_response, inputs =[chatbot,],outputs = chatbot,)
127
 
 
86
  history = history.append(result)
87
 
88
  print(history)
89
+ return history, result
90
 
91
 
92
 
 
121
 
122
  # Event handler for uploading a PDF
123
  btn.upload(fn=upload_pdf, inputs=[btn], outputs=[output])
124
+ txt.submit(run_query, [btn, chatbot, txt], [chatbot, result])
125
  #.then(
126
  # generate_response, inputs =[chatbot,],outputs = chatbot,)
127