noumanjavaid commited on
Commit
9545dfa
·
verified ·
1 Parent(s): 9560e28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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