Tuana commited on
Commit
95e1f5e
1 Parent(s): 2a5639d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- preprocessed_docs = preprocessor.process(documents)
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