project21 commited on
Commit
1400931
·
verified ·
1 Parent(s): 1039ea8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -25,10 +25,8 @@ def predict_disease(image_file, model, all_labels):
25
 
26
  # Print the predicted label to the console
27
 
28
- if predicted_label=='Healthy':
29
- predicted_label = predicted_label = """<h3 align="center">Healthy</h3><br><br>
30
- <center>No need use Pesticides</center>"""
31
- elif predicted_label=='Brown Spot':
32
  predicted_label = """
33
  <style>
34
  li{
@@ -190,7 +188,7 @@ def predict_disease(image_file, model, all_labels):
190
  # List of class labels
191
  all_labels = [
192
  'Brown Spot',
193
- 'Blast','Bacterial Leaf Blight','Healthy'
194
  ]
195
 
196
  # Define the Gradio interface
 
25
 
26
  # Print the predicted label to the console
27
 
28
+
29
+ if predicted_label=='Brown Spot':
 
 
30
  predicted_label = """
31
  <style>
32
  li{
 
188
  # List of class labels
189
  all_labels = [
190
  'Brown Spot',
191
+ 'Blast','Bacterial Leaf Blight'
192
  ]
193
 
194
  # Define the Gradio interface