Spaces:
Sleeping
Sleeping
Samarth991
commited on
Commit
•
4727b07
1
Parent(s):
ef9e1ba
Adding Langchain QA
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ with gr.Blocks(css=css) as demo:
|
|
131 |
question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter")
|
132 |
submit_button = gr.Button("Send Message")
|
133 |
load_pdf.click(loading_file, None, langchain_status, queue=False)
|
134 |
-
load_pdf.click(document_loader, inputs=[pdf_doc,file_extension,
|
135 |
|
136 |
# question.submit(add_text, [chatbot, question], [chatbot, question]).then(
|
137 |
# bot, chatbot, chatbot
|
|
|
131 |
question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter")
|
132 |
submit_button = gr.Button("Send Message")
|
133 |
load_pdf.click(loading_file, None, langchain_status, queue=False)
|
134 |
+
load_pdf.click(document_loader, inputs=[pdf_doc,API_key,file_extension,LLM_option], outputs=[langchain_status], queue=False)
|
135 |
|
136 |
# question.submit(add_text, [chatbot, question], [chatbot, question]).then(
|
137 |
# bot, chatbot, chatbot
|