not-lain commited on
Commit
ced0509
·
1 Parent(s): 7888f8c
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -13,8 +13,6 @@ def convert_readme_to_pdf(markdown_file) -> str:
13
  return output_path
14
 
15
  def convert_image_to_pdf(image_file) -> str:
16
- # Open image and convert to PDF
17
- image = Image.open(image_file.name)
18
  output_path = image_file.name.replace(os.path.splitext(image_file.name)[1], '.pdf')
19
  converter.convert(image_file.name, output_path)
20
  return output_path
 
13
  return output_path
14
 
15
  def convert_image_to_pdf(image_file) -> str:
 
 
16
  output_path = image_file.name.replace(os.path.splitext(image_file.name)[1], '.pdf')
17
  converter.convert(image_file.name, output_path)
18
  return output_path