Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,9 @@ def pdf_to_document_store(pdf_files):
|
|
24 |
documents = []
|
25 |
for pdf in pdf_files:
|
26 |
doc = converter.convert(file_path=pdf.name, meta=None)[0]
|
27 |
-
st.write(len(doc))
|
28 |
st.write(doc)
|
29 |
preprocessed_doc=preprocessor.process([doc])
|
30 |
-
st.write(
|
31 |
documents.append(preprocessed_doc)
|
32 |
document_store.write_documents(documents)
|
33 |
st.write('Document count: ', document_store.get_document_count())
|
|
|
24 |
documents = []
|
25 |
for pdf in pdf_files:
|
26 |
doc = converter.convert(file_path=pdf.name, meta=None)[0]
|
|
|
27 |
st.write(doc)
|
28 |
preprocessed_doc=preprocessor.process([doc])
|
29 |
+
st.write(preprocessed_doc)
|
30 |
documents.append(preprocessed_doc)
|
31 |
document_store.write_documents(documents)
|
32 |
st.write('Document count: ', document_store.get_document_count())
|