Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
29 |
-
|
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'
|
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
|