Spaces:
Sleeping
Sleeping
Update process.py
Browse files- process.py +2 -2
process.py
CHANGED
|
@@ -179,7 +179,7 @@ Important Note:
|
|
| 179 |
"""
|
| 180 |
|
| 181 |
|
| 182 |
-
poppler_path = './bin/'
|
| 183 |
|
| 184 |
|
| 185 |
def extract_from_image(img):
|
|
@@ -217,7 +217,7 @@ def process(file_path):
|
|
| 217 |
if file_extension == '.pdf':
|
| 218 |
# Process as PDF
|
| 219 |
print("Processing PDF...")
|
| 220 |
-
images = convert_from_path(file_path
|
| 221 |
elif file_extension in ['.png', '.jpg', '.jpeg', '.tiff', '.bmp']:
|
| 222 |
# Process as image
|
| 223 |
print("Processing Image...")
|
|
|
|
| 179 |
"""
|
| 180 |
|
| 181 |
|
| 182 |
+
# poppler_path = './bin/'
|
| 183 |
|
| 184 |
|
| 185 |
def extract_from_image(img):
|
|
|
|
| 217 |
if file_extension == '.pdf':
|
| 218 |
# Process as PDF
|
| 219 |
print("Processing PDF...")
|
| 220 |
+
images = convert_from_path(file_path) # Convert PDF to images
|
| 221 |
elif file_extension in ['.png', '.jpg', '.jpeg', '.tiff', '.bmp']:
|
| 222 |
# Process as image
|
| 223 |
print("Processing Image...")
|