Update app.py
Browse files
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
|
68 |
-
img = Image.open(input_image
|
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':
|