Commit
·
32c82b3
1
Parent(s):
d80e46a
changed var name
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ file = st.file_uploader(" ", type=["jpg", "png"])
|
|
60 |
def import_and_predict(image_data, model):
|
61 |
img_array = keras.preprocessing.image.img_to_array(image_data)
|
62 |
img_array = np.expand_dims(img_array, axis=0)
|
63 |
-
img_array =
|
64 |
|
65 |
predictions = model.predict(img_array)
|
66 |
return predictions
|
|
|
60 |
def import_and_predict(image_data, model):
|
61 |
img_array = keras.preprocessing.image.img_to_array(image_data)
|
62 |
img_array = np.expand_dims(img_array, axis=0)
|
63 |
+
img_array = img_array/255
|
64 |
|
65 |
predictions = model.predict(img_array)
|
66 |
return predictions
|