Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
58 |
-
|
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:
|