Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def preprocess_image(image):
|
|
73 |
# Log image shape and type for debugging
|
74 |
#logger.info(f"Input image shape: {image.}, dtype: {image.dtype}")
|
75 |
|
76 |
-
image = image.convert('
|
77 |
image = image.resize((256, 256, 3))
|
78 |
image = np.array(image)
|
79 |
|
|
|
73 |
# Log image shape and type for debugging
|
74 |
#logger.info(f"Input image shape: {image.}, dtype: {image.dtype}")
|
75 |
|
76 |
+
image = image.convert('RGB')
|
77 |
image = image.resize((256, 256, 3))
|
78 |
image = np.array(image)
|
79 |
|