Chandranshu Jain commited on
Commit
4f711ce
1 Parent(s): a570870

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
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
- with st.sidebar:
71
- st.title("Menu:")
72
- pdf_docs = st.file_uploader("Upload your PDF Files and Click on the Submit & Process Button", accept_multiple_files=True, key="pdf_uploader")
73
- if query and st.button("Submit & Process", key="process_button"):
74
- with st.spinner("Processing..."):
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