Spaces:
Sleeping
Sleeping
Commit ·
3fe49fc
1
Parent(s): 717743f
fix model load
Browse files- src/prediction.py +1 -2
src/prediction.py
CHANGED
|
@@ -21,9 +21,8 @@ class_names = [
|
|
| 21 |
|
| 22 |
@st.cache_resource
|
| 23 |
def load_model_from_hub():
|
| 24 |
-
|
| 25 |
|
| 26 |
-
model = tf.keras.models.load_model(model_dir)
|
| 27 |
return model
|
| 28 |
|
| 29 |
|
|
|
|
| 21 |
|
| 22 |
@st.cache_resource
|
| 23 |
def load_model_from_hub():
|
| 24 |
+
model = tf.keras.models.load_model("leaf_detection_model.keras")
|
| 25 |
|
|
|
|
| 26 |
return model
|
| 27 |
|
| 28 |
|