Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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((
|
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)
|