Update app.py
Browse files
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 |
-
|
100 |
-
|
101 |
-
|
|
|
102 |
with st.spinner("processing"):
|
103 |
# get pdf text
|
104 |
-
raw_text = get_pdf_text(
|
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)
|