KaburaJ commited on
Commit
2f7cbf4
·
1 Parent(s): 3dffb6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -54,8 +54,8 @@ def load_model():
54
  if not os.path.isfile('model.h5'):
55
  subprocess.run(['curl --output model.h5 "https://github.com/KaburaJ/Binary-Image-classification/blob/main/ZebraHorse/CNN%20Application/model.h5"'], shell=True)
56
 
57
- model = tf.keras.models.load_model('model.h5', compile=False)
58
- return model
59
  # def load_model():
60
  # # Load the model architecture
61
  # with open('model.json', 'r') as f:
 
54
  if not os.path.isfile('model.h5'):
55
  subprocess.run(['curl --output model.h5 "https://github.com/KaburaJ/Binary-Image-classification/blob/main/ZebraHorse/CNN%20Application/model.h5"'], shell=True)
56
 
57
+ model = tf.keras.models.load_model('model.h5', compile=False)
58
+ return model
59
  # def load_model():
60
  # # Load the model architecture
61
  # with open('model.json', 'r') as f: