Update module_ocr.py
Browse files- 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,
|