Spaces:
Runtime error
Runtime error
pierreguillou
commited on
Commit
·
c553081
1
Parent(s):
1f33c4a
Update files/functions.py
Browse files- files/functions.py +1 -1
files/functions.py
CHANGED
@@ -192,7 +192,7 @@ def pdf_to_images(uploaded_pdf):
|
|
192 |
else:
|
193 |
# path to the uploaded PDF
|
194 |
path_to_file = uploaded_pdf.name
|
195 |
-
filename = path_to_file
|
196 |
|
197 |
try:
|
198 |
PdfReader(path_to_file)
|
|
|
192 |
else:
|
193 |
# path to the uploaded PDF
|
194 |
path_to_file = uploaded_pdf.name
|
195 |
+
filename = path_to_file.replace("/tmp/","")
|
196 |
|
197 |
try:
|
198 |
PdfReader(path_to_file)
|