Commit ·
6298b44
1
Parent(s): 334cece
installing poppler utils for pdf2image
Browse files- app.py +1 -0
- packages.txt +1 -0
app.py
CHANGED
|
@@ -42,6 +42,7 @@ def save_images_to_local(dataset, output_folder="data/"):
|
|
| 42 |
# image = Image.open(image)
|
| 43 |
|
| 44 |
output_path = os.path.join(output_folder, f"image_{image_id}.png")
|
|
|
|
| 45 |
image.save(output_path, format="PNG")
|
| 46 |
|
| 47 |
|
|
|
|
| 42 |
# image = Image.open(image)
|
| 43 |
|
| 44 |
output_path = os.path.join(output_folder, f"image_{image_id}.png")
|
| 45 |
+
#image = Image.open(io.BytesIO(image_data))
|
| 46 |
image.save(output_path, format="PNG")
|
| 47 |
|
| 48 |
|
packages.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
poppler-utils
|