JUNGU commited on
Commit
17a5ef3
·
1 Parent(s): ab3e8ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ class PDF(FPDF):
45
  def save_as_pdf():
46
  global chapters
47
  pdf_path = "/mnt/data/chapters.pdf"
48
- pdf = PDF(encoding='UTF-8')
49
  for i, chapter in enumerate(chapters, start=1):
50
  pdf.add_chapter(i, f"Chapter {i}", chapter["story"], chapter["image"])
51
  pdf.output(pdf_path)
 
45
  def save_as_pdf():
46
  global chapters
47
  pdf_path = "/mnt/data/chapters.pdf"
48
+ pdf = PDF()
49
  for i, chapter in enumerate(chapters, start=1):
50
  pdf.add_chapter(i, f"Chapter {i}", chapter["story"], chapter["image"])
51
  pdf.output(pdf_path)