Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -178,7 +178,7 @@ def create_pdf_from_markdown_strings(markdown_strings):
|
|
| 178 |
|
| 179 |
def generate_pdf(html_strings):
|
| 180 |
pdf = BytesIO()
|
| 181 |
-
|
| 182 |
pdf.seek(0)
|
| 183 |
return pdf
|
| 184 |
|
|
|
|
| 178 |
|
| 179 |
def generate_pdf(html_strings):
|
| 180 |
pdf = BytesIO()
|
| 181 |
+
HTML(string=html_string).write_pdf(pdf)
|
| 182 |
pdf.seek(0)
|
| 183 |
return pdf
|
| 184 |
|