SathvikGanta commited on
Commit
e28e8ee
·
verified ·
1 Parent(s): 846cbd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.read())
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)