Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from keras.models import load_model
|
|
5 |
import numpy as np
|
6 |
|
7 |
# Load the pre-trained model from the local path
|
8 |
-
model_path = '
|
9 |
model = load_model(model_path)
|
10 |
|
11 |
def predict_disease(image_file, model, all_labels):
|
@@ -39,7 +39,7 @@ def predict_disease(image_file, model, all_labels):
|
|
39 |
return None
|
40 |
|
41 |
# List of class labels
|
42 |
-
all_labels = ['
|
43 |
|
44 |
# Define the Gradio interface
|
45 |
def gradio_predict(image_file):
|
|
|
5 |
import numpy as np
|
6 |
|
7 |
# Load the pre-trained model from the local path
|
8 |
+
model_path = 'Mango.h5'
|
9 |
model = load_model(model_path)
|
10 |
|
11 |
def predict_disease(image_file, model, all_labels):
|
|
|
39 |
return None
|
40 |
|
41 |
# List of class labels
|
42 |
+
all_labels = ['Mango Anthracrose','Mango Bacterial Cancker','Mango Cutting weevil','Mango Die Back','Mango Gall Midge ','Mango Healthy','Mango powdery mildew','Mango Sooty Mould']
|
43 |
|
44 |
# Define the Gradio interface
|
45 |
def gradio_predict(image_file):
|