Alex Strick van Linschoten commited on
Commit
a662dcb
1 Parent(s): 1a4dba1

update fpdf instruction

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def predict(pdf, confidence, generate_file):
105
  tmp_dir, filename_without_extension, "redacted_pages.pdf"
106
  )
107
  if generate_file:
108
- pdf = FPDF()
109
  pdf.set_auto_page_break(0)
110
  imagelist = sorted(
111
  [
 
105
  tmp_dir, filename_without_extension, "redacted_pages.pdf"
106
  )
107
  if generate_file:
108
+ pdf = FPDF(unit="cm", format="A4")
109
  pdf.set_auto_page_break(0)
110
  imagelist = sorted(
111
  [