Didier commited on
Commit
79e5f54
·
verified ·
1 Parent(s): 9bf07aa

Update module_ocr.py

Browse files
Files changed (1) hide show
  1. module_ocr.py +1 -1
module_ocr.py CHANGED
@@ -122,7 +122,7 @@ def preview_file(file):
122
  # For PDFs, convert first page to image using pdf2image
123
  try:
124
  # Convert only the first page for preview
125
- pages = convert_from_path(
126
  file_path,
127
  first_page=1,
128
  last_page=1,
 
122
  # For PDFs, convert first page to image using pdf2image
123
  try:
124
  # Convert only the first page for preview
125
+ pages = pdf2image.convert_from_path(
126
  file_path,
127
  first_page=1,
128
  last_page=1,