codelion commited on
Commit
bee92c0
·
verified ·
1 Parent(s): baa776d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,8 +64,8 @@ def process_image(input_image):
64
  processed_paths = [] # Initialize the list outside try block
65
 
66
  try:
67
- # Open and process image
68
- img = Image.open(input_image.name)
69
 
70
  # Convert to RGB if necessary
71
  if img.mode != 'RGB':
 
64
  processed_paths = [] # Initialize the list outside try block
65
 
66
  try:
67
+ # Open the image directly since Gradio provides the image path
68
+ img = Image.open(input_image)
69
 
70
  # Convert to RGB if necessary
71
  if img.mode != 'RGB':