Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -290,7 +290,7 @@ def convert_doc_to_images(path):
|
|
| 290 |
return images
|
| 291 |
|
| 292 |
def convert_doc_to_images_with_dpi(path, dpi=300):
|
| 293 |
-
images = convert_from_path(path)
|
| 294 |
images_with_dpi = []
|
| 295 |
for i, image in enumerate(images):
|
| 296 |
# Save the image temporarily to a BytesIO object to read it back with PIL
|
|
|
|
| 290 |
return images
|
| 291 |
|
| 292 |
def convert_doc_to_images_with_dpi(path, dpi=300):
|
| 293 |
+
images = convert_from_path(path,dpi=dpi)
|
| 294 |
images_with_dpi = []
|
| 295 |
for i, image in enumerate(images):
|
| 296 |
# Save the image temporarily to a BytesIO object to read it back with PIL
|