Spaces:
Sleeping
Sleeping
Commit
•
1eb9cb9
1
Parent(s):
6a21b6b
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import matplotlib.pyplot as plt
|
|
9 |
|
10 |
# Load the pre-trained model and class indices
|
11 |
working_dir = os.path.dirname(os.path.abspath(__file__))
|
12 |
-
model_path =
|
13 |
model = tf.keras.models.load_model(model_path)
|
14 |
class_indices = json.load(open(f"{working_dir}/class_indices.json"))
|
15 |
|
|
|
9 |
|
10 |
# Load the pre-trained model and class indices
|
11 |
working_dir = os.path.dirname(os.path.abspath(__file__))
|
12 |
+
model_path = "crop_disease_detection_model.h5"
|
13 |
model = tf.keras.models.load_model(model_path)
|
14 |
class_indices = json.load(open(f"{working_dir}/class_indices.json"))
|
15 |
|