Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,8 @@ import base64
|
|
11 |
import tempfile
|
12 |
from reportlab.pdfgen import canvas
|
13 |
from reportlab.lib.pagesizes import letter
|
14 |
-
from reportlab.
|
|
|
15 |
from PyPDF2 import PdfReader, PdfWriter
|
16 |
|
17 |
from hugchat import hugchat
|
@@ -45,7 +46,7 @@ from beschreibungen import *
|
|
45 |
from dotenv import load_dotenv, find_dotenv
|
46 |
_ = load_dotenv(find_dotenv())
|
47 |
|
48 |
-
registerFont(TTFont('DejaVuSerif', './DejaVuSerif.ttf'))
|
49 |
|
50 |
###############################################
|
51 |
#globale Variablen
|
|
|
11 |
import tempfile
|
12 |
from reportlab.pdfgen import canvas
|
13 |
from reportlab.lib.pagesizes import letter
|
14 |
+
from reportlab.pdfbase import pdfmetrics
|
15 |
+
from reportlab.pdfbase.ttfonts import TTFont
|
16 |
from PyPDF2 import PdfReader, PdfWriter
|
17 |
|
18 |
from hugchat import hugchat
|
|
|
46 |
from dotenv import load_dotenv, find_dotenv
|
47 |
_ = load_dotenv(find_dotenv())
|
48 |
|
49 |
+
pdfmetrics.registerFont(TTFont('DejaVuSerif', './DejaVuSerif.ttf'))
|
50 |
|
51 |
###############################################
|
52 |
#globale Variablen
|