Spaces:
Runtime error
Runtime error
Alex Strick van Linschoten
commited on
Commit
•
422c318
1
Parent(s):
0fdafcf
update image pasting
Browse files
app.py
CHANGED
@@ -51,7 +51,8 @@ def predict(pdf, confidence, generate_file):
|
|
51 |
)
|
52 |
for image in imagelist:
|
53 |
pdf.add_page()
|
54 |
-
pdf.image(os.path.join(tmp_dir, image), w=190, h=280)
|
|
|
55 |
pdf.output(report, "F")
|
56 |
text_output = f"A total of {len(redacted_pages)} pages were redacted. \n\n The redacted page numbers were: {', '.join(redacted_pages)}."
|
57 |
if generate_file:
|
|
|
51 |
)
|
52 |
for image in imagelist:
|
53 |
pdf.add_page()
|
54 |
+
# pdf.image(os.path.join(tmp_dir, image), w=190, h=280)
|
55 |
+
pdf.image(os.path.join(tmp_dir, image))
|
56 |
pdf.output(report, "F")
|
57 |
text_output = f"A total of {len(redacted_pages)} pages were redacted. \n\n The redacted page numbers were: {', '.join(redacted_pages)}."
|
58 |
if generate_file:
|