Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -28,9 +28,7 @@ def pdf_to_document_store(pdf_files):
|
|
28 |
doc = converter.convert(file_path=pdf.name, meta=None)[0]
|
29 |
documents.append(doc)
|
30 |
st.write(len(documents))
|
31 |
-
|
32 |
-
st.write('Preprocessed count: ', len(preprocessed_docs))
|
33 |
-
document_store.write_documents(preprocessed_docs)
|
34 |
st.write('Document count: ', document_store.get_document_count())
|
35 |
|
36 |
|
|
|
28 |
doc = converter.convert(file_path=pdf.name, meta=None)[0]
|
29 |
documents.append(doc)
|
30 |
st.write(len(documents))
|
31 |
+
document_store.write_documents(documents)
|
|
|
|
|
32 |
st.write('Document count: ', document_store.get_document_count())
|
33 |
|
34 |
|