Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,8 +55,8 @@ def load_model():
|
|
55 |
if not os.path.isfile('model.h5'):
|
56 |
subprocess.run(['curl --output model.h5 "https://github.com/KaburaJ/Binary-Image-classification/blob/main/ZebraHorse/CNN%20Application/model.h5"'], shell=True)
|
57 |
|
58 |
-
|
59 |
-
|
60 |
|
61 |
|
62 |
# def load_model():
|
|
|
55 |
if not os.path.isfile('model.h5'):
|
56 |
subprocess.run(['curl --output model.h5 "https://github.com/KaburaJ/Binary-Image-classification/blob/main/ZebraHorse/CNN%20Application/model.h5"'], shell=True)
|
57 |
|
58 |
+
model=tf.keras.models.load_model('model.h5', compile=False)
|
59 |
+
return model
|
60 |
|
61 |
|
62 |
# def load_model():
|