valanga commited on
Commit
0aa41de
·
verified ·
1 Parent(s): 93a0ac9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -10,7 +10,6 @@ model = load_model('mio_modello.h5')
10
  def preprocess_image(image):
11
  image = Image.fromarray(image) # Assumendo che 'image' sia un array numpy
12
  image = image.resize((64, 64)) # Ridimensionare l'immagine a 64x64
13
- image_array = np.array(image) / 255.0 # Normalizzare i pixel (da 0 a 1)
14
 
15
  # Aggiungi un controllo per verificare la forma dell'immagine
16
  print(f"Image shape after resizing and normalization: {image_array.shape}")
 
10
  def preprocess_image(image):
11
  image = Image.fromarray(image) # Assumendo che 'image' sia un array numpy
12
  image = image.resize((64, 64)) # Ridimensionare l'immagine a 64x64
 
13
 
14
  # Aggiungi un controllo per verificare la forma dell'immagine
15
  print(f"Image shape after resizing and normalization: {image_array.shape}")