Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ predefined_images = [
|
|
32 |
if fname.lower().endswith(('.png', '.jpg', '.jpeg', '.gif', '.bmp', '.ppm'))
|
33 |
]
|
34 |
|
35 |
-
#
|
36 |
def preprocess_image(image):
|
37 |
if image is None:
|
38 |
return None
|
|
|
32 |
if fname.lower().endswith(('.png', '.jpg', '.jpeg', '.gif', '.bmp', '.ppm'))
|
33 |
]
|
34 |
|
35 |
+
# Function to preprocess the image to RGB format
|
36 |
def preprocess_image(image):
|
37 |
if image is None:
|
38 |
return None
|