Update app.py
Browse files
app.py
CHANGED
@@ -199,7 +199,9 @@ def main():
|
|
199 |
accept_multiple_files=True, key="pdf_uploader")
|
200 |
if st.button("Submit & Process", key="process_button") and api_key:
|
201 |
with st.spinner("Processing..."):
|
202 |
-
|
|
|
|
|
203 |
|
204 |
raw_text = get_pdf_text(pdf_docs)
|
205 |
text_chunks = get_text_chunks(raw_text)
|
|
|
199 |
accept_multiple_files=True, key="pdf_uploader")
|
200 |
if st.button("Submit & Process", key="process_button") and api_key:
|
201 |
with st.spinner("Processing..."):
|
202 |
+
CH_size = 450
|
203 |
+
CH_overlap = 50
|
204 |
+
recreate_faiss_index(pdf_docs, 450, 50, api_key)
|
205 |
|
206 |
raw_text = get_pdf_text(pdf_docs)
|
207 |
text_chunks = get_text_chunks(raw_text)
|