Spaces:
Sleeping
Sleeping
Jeysshon
commited on
Commit
·
fc49b8b
1
Parent(s):
6b21d43
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ cnn_model = load_model(MODEL_ISATRON_JEY)
|
|
10 |
|
11 |
def make_prediction(test_image):
|
12 |
test_image = test_image.name
|
13 |
-
test_image = image.load_img(test_image, target_size=(
|
14 |
test_image = image.img_to_array(test_image) / 255.
|
15 |
test_image = np.expand_dims(test_image, axis=0)
|
16 |
result = cnn_model.predict(test_image)
|
|
|
10 |
|
11 |
def make_prediction(test_image):
|
12 |
test_image = test_image.name
|
13 |
+
test_image = image.load_img(test_image, target_size=(224, 224))
|
14 |
test_image = image.img_to_array(test_image) / 255.
|
15 |
test_image = np.expand_dims(test_image, axis=0)
|
16 |
result = cnn_model.predict(test_image)
|