fffiloni commited on
Commit
549c8fd
1 Parent(s): 4228512

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,8 +75,8 @@ with gr.Blocks(css=css) as demo:
75
  question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
76
  submit_btn = gr.Button("Send message")
77
  #load_pdf.click(loading_pdf, None, langchain_status, queue=False)
78
- repo_id.change(pdf_changes, inputs=[pdf_doc, repo_id], langchain_status, queue=False)
79
- load_pdf.click(pdf_changes, inputs=[pdf_doc, repo_id], langchain_status, queue=False)
80
  question.submit(add_text, [chatbot, question], [chatbot, question]).then(
81
  bot, chatbot, chatbot
82
  )
 
75
  question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
76
  submit_btn = gr.Button("Send message")
77
  #load_pdf.click(loading_pdf, None, langchain_status, queue=False)
78
+ repo_id.change(pdf_changes, inputs=[pdf_doc, repo_id], outputs=[langchain_status], queue=False)
79
+ load_pdf.click(pdf_changes, inputs=[pdf_doc, repo_id], outputs=[langchain_status], queue=False)
80
  question.submit(add_text, [chatbot, question], [chatbot, question]).then(
81
  bot, chatbot, chatbot
82
  )