wholewhale commited on
Commit
02c6b5e
·
1 Parent(s): df75cae

update summary box

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -173,9 +173,12 @@ with gr.Blocks(css=css) as demo:
173
  question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter")
174
  submit_btn = gr.Button("Send Message")
175
 
176
- load_pdf.click(loading_pdf, None, langchain_status, queue=False)
177
- load_pdf.click(pdf_changes, inputs=[pdf_doc], outputs=[langchain_status], queue=False).then(
178
- update_summary_box, state={"summary_box": summary_box}
 
 
 
179
  ) # Then update the summary_box
180
  clear_btn.click(clear_data, outputs=[langchain_status], queue=False)
181
  question.submit(add_text, [chatbot, question], [chatbot, question]).then(
 
173
  question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter")
174
  submit_btn = gr.Button("Send Message")
175
 
176
+ load_pdf.click(loading_pdf, None, langchain_status, queue=False)
177
+ load_pdf.click(pdf_changes, inputs=[pdf_doc], outputs=[langchain_status], queue=False).then(
178
+ update_summary_box
179
+ )
180
+
181
+
182
  ) # Then update the summary_box
183
  clear_btn.click(clear_data, outputs=[langchain_status], queue=False)
184
  question.submit(add_text, [chatbot, question], [chatbot, question]).then(