Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def process_pdf(file, width, height):
|
|
| 31 |
# Save the uploaded file to disk
|
| 32 |
input_pdf = os.path.join(INPUT_FOLDER, file.name)
|
| 33 |
with open(input_pdf, "wb") as f:
|
| 34 |
-
f.write(file
|
| 35 |
|
| 36 |
# Step 1: Convert PDF to SVG
|
| 37 |
convert_pdf_to_svg(input_pdf, SVG_OUTPUT, width, height)
|
|
|
|
| 31 |
# Save the uploaded file to disk
|
| 32 |
input_pdf = os.path.join(INPUT_FOLDER, file.name)
|
| 33 |
with open(input_pdf, "wb") as f:
|
| 34 |
+
f.write(file)
|
| 35 |
|
| 36 |
# Step 1: Convert PDF to SVG
|
| 37 |
convert_pdf_to_svg(input_pdf, SVG_OUTPUT, width, height)
|