Alex Strick van Linschoten commited on
Commit
5c79297
1 Parent(s): 68eace8

fix presentation

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -156,7 +156,7 @@ def predict(pdf, confidence, generate_file):
156
  )
157
  pdf.output(report, "F")
158
 
159
- text_output = f"A total of {len(redacted_pages)} pages were redacted. \n\n The redacted page numbers were: {', '.join(redacted_pages)}. "
160
 
161
  if not generate_file:
162
  return text_output, images, None
@@ -168,7 +168,7 @@ def predict(pdf, confidence, generate_file):
168
  (total_redaction_area / total_content_areas) * 100, 1
169
  )
170
 
171
- redaction_analysis = f"{total_redaction_proportion}% of the total area of the redacted pages was redacted. \n {content_redaction_proportion}% of the actual content of those redacted pages was redacted."
172
 
173
  return text_output + redaction_analysis, images, report
174
 
156
  )
157
  pdf.output(report, "F")
158
 
159
+ text_output = f"A total of {len(redacted_pages)} pages were redacted. \n\nThe redacted page numbers were: {', '.join(redacted_pages)}. \n\n"
160
 
161
  if not generate_file:
162
  return text_output, images, None
168
  (total_redaction_area / total_content_areas) * 100, 1
169
  )
170
 
171
+ redaction_analysis = f"- {total_redaction_proportion}% of the total area of the redacted pages was redacted. \n- {content_redaction_proportion}% of the actual content of those redacted pages was redacted."
172
 
173
  return text_output + redaction_analysis, images, report
174