Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,11 +131,11 @@ def build_ebook_pdf_with_images(username, goal, genre, tone, style, length,
|
|
| 131 |
|
| 132 |
# COVER TEXT
|
| 133 |
pdf.set_font("Helvetica", "B", 20)
|
| 134 |
-
pdf.multi_cell(0, 10, safe_text(goal), 0
|
| 135 |
|
| 136 |
pdf.set_font("Helvetica", "", 12)
|
| 137 |
-
pdf.multi_cell(0, 7, safe_text(f"Genre: {genre}"), 0
|
| 138 |
-
pdf.multi_cell(0, 7, safe_text(f"Tone: {tone} | Style: {style}"), 0
|
| 139 |
|
| 140 |
# TABLE OF CONTENTS
|
| 141 |
pdf.add_page()
|
|
@@ -179,7 +179,7 @@ def build_ebook_pdf_with_images(username, goal, genre, tone, style, length,
|
|
| 179 |
|
| 180 |
pdf.set_font("Helvetica", "", 12)
|
| 181 |
for _ in range(5):
|
| 182 |
-
pdf.multi_cell(0, 7, safe_text(body_paragraph), 0
|
| 183 |
pdf.ln(2)
|
| 184 |
|
| 185 |
filename = os.path.join("outputs", f"ebook_{uuid.uuid4().hex}.pdf")
|
|
|
|
| 131 |
|
| 132 |
# COVER TEXT
|
| 133 |
pdf.set_font("Helvetica", "B", 20)
|
| 134 |
+
pdf.multi_cell(0, 10, safe_text(goal), 0)
|
| 135 |
|
| 136 |
pdf.set_font("Helvetica", "", 12)
|
| 137 |
+
pdf.multi_cell(0, 7, safe_text(f"Genre: {genre}"), 0)
|
| 138 |
+
pdf.multi_cell(0, 7, safe_text(f"Tone: {tone} | Style: {style}"), 0)
|
| 139 |
|
| 140 |
# TABLE OF CONTENTS
|
| 141 |
pdf.add_page()
|
|
|
|
| 179 |
|
| 180 |
pdf.set_font("Helvetica", "", 12)
|
| 181 |
for _ in range(5):
|
| 182 |
+
pdf.multi_cell(0, 7, safe_text(body_paragraph), 0)
|
| 183 |
pdf.ln(2)
|
| 184 |
|
| 185 |
filename = os.path.join("outputs", f"ebook_{uuid.uuid4().hex}.pdf")
|