Edvin Behdadijd
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,6 @@ def process_file(input_file):
|
|
| 54 |
|
| 55 |
if file_extension in ['.png', '.jpeg', '.jpg', '.bmp', '.gif']:
|
| 56 |
image = Image.open(input_file)
|
| 57 |
-
image = image.convert('RGB')
|
| 58 |
output_image = remove_background_from_image(image)
|
| 59 |
images.append(output_image)
|
| 60 |
elif file_extension == '.pdf':
|
|
|
|
| 54 |
|
| 55 |
if file_extension in ['.png', '.jpeg', '.jpg', '.bmp', '.gif']:
|
| 56 |
image = Image.open(input_file)
|
|
|
|
| 57 |
output_image = remove_background_from_image(image)
|
| 58 |
images.append(output_image)
|
| 59 |
elif file_extension == '.pdf':
|