Upload 7 files
Browse files- prediction.py +2 -2
prediction.py
CHANGED
@@ -7,13 +7,13 @@ import tensorflow as tf
|
|
7 |
from tensorflow.keras.models import load_model
|
8 |
|
9 |
#load model
|
10 |
-
|
11 |
|
12 |
def run():
|
13 |
|
14 |
file = st.file_uploader("Upload an image", type=["jpg", "png"])
|
15 |
|
16 |
-
model = load_model('
|
17 |
target_size=(360, 360)
|
18 |
|
19 |
def import_and_predict(image_data, model):
|
|
|
7 |
from tensorflow.keras.models import load_model
|
8 |
|
9 |
#load model
|
10 |
+
|
11 |
|
12 |
def run():
|
13 |
|
14 |
file = st.file_uploader("Upload an image", type=["jpg", "png"])
|
15 |
|
16 |
+
model = load_model('ANNmodel.keras', custom_objects={'KerasLayer': KerasLayer})
|
17 |
target_size=(360, 360)
|
18 |
|
19 |
def import_and_predict(image_data, model):
|