Spaces:
Sleeping
Sleeping
Update Def PDF
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def write_pdf(transcription, output_file, tokenizer=None, translation_model=None
|
|
124 |
pdf.add_page()
|
125 |
|
126 |
# Set up the font for Farsi (Unicode-compliant)
|
127 |
-
font_path = "/home/user/app/B-NAZANIN.
|
128 |
pdf.add_font('B-NAZANIN', '', font_path, uni=True)
|
129 |
pdf.set_font('B-NAZANIN', size=12)
|
130 |
|
|
|
124 |
pdf.add_page()
|
125 |
|
126 |
# Set up the font for Farsi (Unicode-compliant)
|
127 |
+
font_path = "/home/user/app/B-NAZANIN.TTF" # Ensure the correct path to the font file
|
128 |
pdf.add_font('B-NAZANIN', '', font_path, uni=True)
|
129 |
pdf.set_font('B-NAZANIN', size=12)
|
130 |
|