Update app.py
Browse files
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 =
|
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."
|