Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from tensorflow_addons.metrics import F1Score
|
|
| 11 |
from keras.utils import custom_object_scope
|
| 12 |
|
| 13 |
with custom_object_scope({'Addons>F1Score': F1Score}):
|
| 14 |
-
model = tf.keras.models.
|
| 15 |
|
| 16 |
|
| 17 |
def classify_image(inp):
|
|
|
|
| 11 |
from keras.utils import custom_object_scope
|
| 12 |
|
| 13 |
with custom_object_scope({'Addons>F1Score': F1Score}):
|
| 14 |
+
model = tf.keras.models.load_model('best_model.h5')
|
| 15 |
|
| 16 |
|
| 17 |
def classify_image(inp):
|