sprinala commited on
Commit
fa77001
·
verified ·
1 Parent(s): 1e2e085

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ class_names = ['Jolteon', 'Kakuna', 'Mr. Mime']
11
 
12
  def classify_image(image):
13
  image = Image.fromarray(image.astype('uint8'), 'RGB')
14
- img = image.resize((160, 160))
15
  img_array = tf.keras.preprocessing.image.img_to_array(img)
16
  img_array = tf.expand_dims(img_array, 0) # Erstelle einen Batch
17
  predictions = model.predict(img_array)
 
11
 
12
  def classify_image(image):
13
  image = Image.fromarray(image.astype('uint8'), 'RGB')
14
+ img = image.resize((150, 150))
15
  img_array = tf.keras.preprocessing.image.img_to_array(img)
16
  img_array = tf.expand_dims(img_array, 0) # Erstelle einen Batch
17
  predictions = model.predict(img_array)