Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from PIL import Image as PIL_Image
|
|
8 |
model = tf.keras.models.load_model('dogcat_model_bak.h5')
|
9 |
|
10 |
def classify_image(input_image):
|
11 |
-
pil_img = PIL_Image.fromarray(input_image
|
12 |
# Preprocess the image
|
13 |
img1 = pil_img.resize((64, 64))
|
14 |
img2 = pil_img
|
|
|
8 |
model = tf.keras.models.load_model('dogcat_model_bak.h5')
|
9 |
|
10 |
def classify_image(input_image):
|
11 |
+
pil_img = PIL_Image.fromarray(input_image, 'RGB')
|
12 |
# Preprocess the image
|
13 |
img1 = pil_img.resize((64, 64))
|
14 |
img2 = pil_img
|