Update app.py
Browse files
app.py
CHANGED
|
@@ -12,8 +12,7 @@ from tensorflow.keras.utils import get_custom_objects
|
|
| 12 |
# Define and register the custom KerasLayer
|
| 13 |
class KerasLayer(Layer):
|
| 14 |
# Your custom layer implementation
|
| 15 |
-
|
| 16 |
-
get_custom_objects().update({"KerasLayer": KerasLayer})
|
| 17 |
|
| 18 |
# Load the model
|
| 19 |
model_path = "./Vegetable/Vegetable.h5"
|
|
|
|
| 12 |
# Define and register the custom KerasLayer
|
| 13 |
class KerasLayer(Layer):
|
| 14 |
# Your custom layer implementation
|
| 15 |
+
get_custom_objects().update({"KerasLayer": KerasLayer})
|
|
|
|
| 16 |
|
| 17 |
# Load the model
|
| 18 |
model_path = "./Vegetable/Vegetable.h5"
|