Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,8 @@ def pdf_to_document_store(pdf_files):
|
|
24 |
converter = PDFToTextConverter(remove_numeric_tables=True, valid_languages=["en"])
|
25 |
documents = []
|
26 |
for pdf in pdf_files:
|
27 |
-
|
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 |
|
|
|
24 |
converter = PDFToTextConverter(remove_numeric_tables=True, valid_languages=["en"])
|
25 |
documents = []
|
26 |
for pdf in pdf_files:
|
27 |
+
doc = converter.convert(file_path=pdf.name, meta=None)
|
|
|
28 |
documents.append(doc)
|
|
|
29 |
document_store.write_documents(documents)
|
30 |
st.write('Document count: ', document_store.get_document_count())
|
31 |
|