Spaces:
Sleeping
Sleeping
Changed Arial to Notosans to fix error for pdf
Browse files
app.py
CHANGED
|
@@ -13,8 +13,8 @@ def generate_pdf_from_chat(chat_history):
|
|
| 13 |
pdf.add_page()
|
| 14 |
|
| 15 |
# Register the Arial font (uploaded to the Space's fonts directory)
|
| 16 |
-
pdf.add_font("
|
| 17 |
-
pdf.set_font("
|
| 18 |
|
| 19 |
for user_msg, bot_msg in chat_history:
|
| 20 |
pdf.multi_cell(0, 10, txt=f"User: {user_msg}", align='L')
|
|
|
|
| 13 |
pdf.add_page()
|
| 14 |
|
| 15 |
# Register the Arial font (uploaded to the Space's fonts directory)
|
| 16 |
+
pdf.add_font("NotoSans", "", "NotoSans-Regular.ttf", uni=True)
|
| 17 |
+
pdf.set_font("NotoSans","", size=12)
|
| 18 |
|
| 19 |
for user_msg, bot_msg in chat_history:
|
| 20 |
pdf.multi_cell(0, 10, txt=f"User: {user_msg}", align='L')
|