cdcvd commited on
Commit
8f74b38
1 Parent(s): 74cc02c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def process_file(input_file):
86
  images = convert_pdf_to_images(input_file.name)
87
  return [remove_background_from_image(image) for image in images]
88
  elif file_extension in ['.docx', '.doc']:
89
- images = convert_docx_to_images(input_file.name)
90
  return [remove_background_from_image(image) for image in images]
91
  else:
92
  return "File format not supported."
 
86
  images = convert_pdf_to_images(input_file.name)
87
  return [remove_background_from_image(image) for image in images]
88
  elif file_extension in ['.docx', '.doc']:
89
+ images = convert_docx_to_jpeg(input_file.name)
90
  return [remove_background_from_image(image) for image in images]
91
  else:
92
  return "File format not supported."