taaha3244 commited on
Commit
b116b3a
1 Parent(s): bbe5b39

Update preprocess.py

Browse files
Files changed (1) hide show
  1. preprocess.py +1 -1
preprocess.py CHANGED
@@ -5,7 +5,7 @@ from langchain_community.document_loaders import UnstructuredAPIFileLoader
5
 
6
  def load_documents_OCR(file_path, unstructured_api):
7
  """Load documents that require OCR via unstructured."""
8
- loader = UnstructuredAPIFileLoader(file_path=file_path, api_key=unstructured_api)
9
  documents = loader.load()
10
  return documents
11
 
 
5
 
6
  def load_documents_OCR(file_path, unstructured_api):
7
  """Load documents that require OCR via unstructured."""
8
+ loader = UnstructuredAPIFileLoader(file_path=file_path, api_key=unstructured_api,mode='paged')
9
  documents = loader.load()
10
  return documents
11