project21 commited on
Commit
52a21f0
·
verified ·
1 Parent(s): feccdb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 'Leaf_namek.h5'
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 = ['Corn-Common_rust', 'Potato-Early_blight', 'Tomato-Bacterial_spot']
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):