wijayaa65 commited on
Commit
593fc20
1 Parent(s): d302393

Upload 7 files

Browse files
Files changed (1) hide show
  1. 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
- model = load_model('ANNmodel.keras')
11
 
12
  def run():
13
 
14
  file = st.file_uploader("Upload an image", type=["jpg", "png"])
15
 
16
- model = load_model('my_model.keras', custom_objects={'KerasLayer': KerasLayer})
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):