Update app.py
Browse files
app.py
CHANGED
@@ -232,8 +232,7 @@ def process_smile_enhancement(input_image, max_attempts=2):
|
|
232 |
if image_path:
|
233 |
# Load and convert the image if needed
|
234 |
try:
|
235 |
-
result_img = Image.
|
236 |
-
open(image_path)
|
237 |
if result_img.mode == "RGBA":
|
238 |
result_img = result_img.convert("RGB")
|
239 |
|
|
|
232 |
if image_path:
|
233 |
# Load and convert the image if needed
|
234 |
try:
|
235 |
+
result_img = Image.open(image_path)
|
|
|
236 |
if result_img.mode == "RGBA":
|
237 |
result_img = result_img.convert("RGB")
|
238 |
|