Skip to content

Commit

Permalink
fix: ocr issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Mar 7, 2024
1 parent dc6e91a commit b88c64f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/apps/rag/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
1 change: 1 addition & 0 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ openpyxl
pyxlsb
xlrd
rapidocr-onnxruntime
opencv-python-headless

faster-whisper

Expand Down

0 comments on commit b88c64f

Please sign in to comment.