Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -153,7 +153,8 @@ def main():
|
|
153 |
pdf_files = ["waste_guideline.pdf"]
|
154 |
raw_text = get_pdf_text([open(pdf, "rb") for pdf in pdf_files])
|
155 |
text_chunks = get_text_chunks(raw_text)
|
156 |
-
get_vector_store(text_chunks)
|
|
|
157 |
else:
|
158 |
st.info("FAISS index loaded from 'faiss_index'.")
|
159 |
|
|
|
153 |
pdf_files = ["waste_guideline.pdf"]
|
154 |
raw_text = get_pdf_text([open(pdf, "rb") for pdf in pdf_files])
|
155 |
text_chunks = get_text_chunks(raw_text)
|
156 |
+
get_vector_store(text_chunks)
|
157 |
+
st.success("Documents processed and FAISS index created.")
|
158 |
else:
|
159 |
st.info("FAISS index loaded from 'faiss_index'.")
|
160 |
|