Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Commit
•
4f711ce
1
Parent(s):
a570870
Update app.py
Browse files
app.py
CHANGED
@@ -67,13 +67,11 @@ def main():
|
|
67 |
|
68 |
query = st.text_input("Ask a Question from the PDF Files", key="query")
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
response = get_pdf(pdf_docs,query)
|
76 |
-
st.success("Done")
|
77 |
st.write("Reply: ", response["output_text"])
|
78 |
|
79 |
|
|
|
67 |
|
68 |
query = st.text_input("Ask a Question from the PDF Files", key="query")
|
69 |
|
70 |
+
pdf_docs = st.file_uploader("Upload your PDF Files and Click on the Submit & Process Button", accept_multiple_files=True, key="pdf_uploader")
|
71 |
+
if query and st.button("Submit & Process", key="process_button"):
|
72 |
+
with st.spinner("Processing..."):
|
73 |
+
response = get_pdf(pdf_docs,query)
|
74 |
+
st.success("Done")
|
|
|
|
|
75 |
st.write("Reply: ", response["output_text"])
|
76 |
|
77 |
|