seanpedrickcase
commited on
Commit
•
e69ae00
1
Parent(s):
face41c
Submitting modified redactions will no longer overwrite default labels
Browse files- tools/file_redaction.py +4 -4
tools/file_redaction.py
CHANGED
@@ -625,10 +625,10 @@ def redact_page_with_pymupdf(page:Page, annotations_on_page, image = None):
|
|
625 |
# Should already be in correct format if img_annotator_box is an input
|
626 |
if isinstance(annot, dict):
|
627 |
img_annotation_box = annot
|
628 |
-
try:
|
629 |
-
|
630 |
-
except:
|
631 |
-
|
632 |
|
633 |
x1, pymupdf_y1, x2, pymupdf_y2 = convert_gradio_annotation_coords_to_pymupdf(page, annot, image)
|
634 |
|
|
|
625 |
# Should already be in correct format if img_annotator_box is an input
|
626 |
if isinstance(annot, dict):
|
627 |
img_annotation_box = annot
|
628 |
+
#try:
|
629 |
+
# img_annotation_box["label"] = annot["label"]
|
630 |
+
#except:
|
631 |
+
# img_annotation_box["label"] = "Redaction"
|
632 |
|
633 |
x1, pymupdf_y1, x2, pymupdf_y2 = convert_gradio_annotation_coords_to_pymupdf(page, annot, image)
|
634 |
|