mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 08:07:55 +00:00
fix: ocr issue
This commit is contained in:
parent
dc6e91a23d
commit
b88c64f80e
@ -425,7 +425,7 @@ def get_loader(filename: str, file_content_type: str, file_path: str):
|
||||
]
|
||||
|
||||
if file_ext == "pdf":
|
||||
loader = PyPDFLoader(file_path)
|
||||
loader = PyPDFLoader(file_path, extract_images=True)
|
||||
elif file_ext == "csv":
|
||||
loader = CSVLoader(file_path)
|
||||
elif file_ext == "rst":
|
||||
|
@ -35,6 +35,7 @@ openpyxl
|
||||
pyxlsb
|
||||
xlrd
|
||||
rapidocr-onnxruntime
|
||||
opencv-python-headless
|
||||
|
||||
faster-whisper
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user