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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -65,14 +65,14 @@ def get_pdf(pdf_docs,query):
65
  def main():
66
  st.header("Chat with your pdf💁")
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
 
78
  if __name__ == "__main__":
 
65
  def main():
66
  st.header("Chat with your pdf💁")
67
 
68
+ question = 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 question and st.button("Submit & Process", key="process_button"):
72
  with st.spinner("Processing..."):
73
+ output = get_pdf(pdf_docs,question)
74
  st.success("Done")
75
+ st.write("Reply: ", output["output_text"])
76
 
77
 
78
  if __name__ == "__main__":