Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ model = load_model('mio_modello.h5')
|
|
9 |
def preprocess_image(image):
|
10 |
image = Image.fromarray(image)
|
11 |
image = image.resize((64, 64))
|
12 |
-
image_array = np.array(image) / 255.0
|
13 |
image_array = np.expand_dims(image_array, axis=0)
|
14 |
return image_array
|
15 |
|
|
|
9 |
def preprocess_image(image):
|
10 |
image = Image.fromarray(image)
|
11 |
image = image.resize((64, 64))
|
12 |
+
#image_array = np.array(image) / 255.0
|
13 |
image_array = np.expand_dims(image_array, axis=0)
|
14 |
return image_array
|
15 |
|