Tuana commited on
Commit
9b93f04
1 Parent(s): 07607d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- st.write(pdf.name)
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