Spaces:
Runtime error
Runtime error
Update preprocess.py
Browse files- 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 |
|