Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def run():
|
|
54 |
|
55 |
if upload is not None:
|
56 |
img = Image.open(upload)
|
57 |
-
img = img.resize((224, 224))
|
58 |
img_array = np.array(img)
|
59 |
img_array = img_array / 255.0
|
60 |
img_array = np.expand_dims(img_array, axis=0)
|
|
|
54 |
|
55 |
if upload is not None:
|
56 |
img = Image.open(upload)
|
57 |
+
img = img.resize((224, 224, 3))
|
58 |
img_array = np.array(img)
|
59 |
img_array = img_array / 255.0
|
60 |
img_array = np.expand_dims(img_array, axis=0)
|