Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,9 +58,9 @@ def load_model():
|
|
58 |
|
59 |
def preprocess_image(image):
|
60 |
"""Preprocess the uploaded image"""
|
61 |
-
# Convert to RGB if needed
|
62 |
-
if image.mode != 'RGB':
|
63 |
-
|
64 |
|
65 |
# Convert to numpy array
|
66 |
img_array = np.array(image)
|
|
|
58 |
|
59 |
def preprocess_image(image):
|
60 |
"""Preprocess the uploaded image"""
|
61 |
+
# # Convert to RGB if needed
|
62 |
+
# if image.mode != 'RGB':
|
63 |
+
# image = image.convert('RGB')
|
64 |
|
65 |
# Convert to numpy array
|
66 |
img_array = np.array(image)
|