valanga commited on
Commit
21c570d
·
verified ·
1 Parent(s): 7410709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 # Se l'addestramento normalizzava tra 0 e 1
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