Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -305,7 +305,7 @@ def generate_pdf(title, editor, concept_art):
|
|
| 305 |
pdf = PDF()
|
| 306 |
pdf.title = "Untitled" if title.strip() == "" else title
|
| 307 |
pdf.art = None if concept_art is None else f"{tmp_filename}.png"
|
| 308 |
-
pdf.print_chapter(editor)
|
| 309 |
pdf.output(f'{tmp_filename}.pdf', 'F')
|
| 310 |
|
| 311 |
return (
|
|
|
|
| 305 |
pdf = PDF()
|
| 306 |
pdf.title = "Untitled" if title.strip() == "" else title
|
| 307 |
pdf.art = None if concept_art is None else f"{tmp_filename}.png"
|
| 308 |
+
pdf.print_chapter(editor.encode('latin-1', 'replace').decode('latin-1'))
|
| 309 |
pdf.output(f'{tmp_filename}.pdf', 'F')
|
| 310 |
|
| 311 |
return (
|