kamau1 commited on
Commit
c9d5692
1 Parent(s): f18eeb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -96,12 +96,13 @@ def get_conversation_chain(vectorstore:FAISS) -> ConversationalRetrievalChain:
96
  def main():
97
  st.title("SemaNaPDF📚")
98
  # upload file
99
- pdf = st.file_uploader("Upload a PDF Document and ask questions to get insights", type="pdf")
100
-
101
- if pdf is not None:
 
102
  with st.spinner("processing"):
103
  # get pdf text
104
- raw_text = get_pdf_text(pdf)
105
 
106
  # get the text chunks
107
  text_chunks = get_text_chunks(raw_text)
 
96
  def main():
97
  st.title("SemaNaPDF📚")
98
  # upload file
99
+ pdf_docs = st.file_uploader(
100
+ "Upload your PDFs here and click on 'Process'", accept_multiple_files=True
101
+ )
102
+ if pdf_docs is not None:
103
  with st.spinner("processing"):
104
  # get pdf text
105
+ raw_text = get_pdf_text(pdf_docs)
106
 
107
  # get the text chunks
108
  text_chunks = get_text_chunks(raw_text)