Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,14 +47,14 @@ CITRUS_TREATMENTS = {
|
|
| 47 |
}
|
| 48 |
|
| 49 |
# --- CORN CONFIGURATION ---
|
| 50 |
-
CORN_MODEL_PATH = "
|
| 51 |
-
CORN_CLASS_NAMES = ['
|
| 52 |
|
| 53 |
# Corn Treatment Knowledge Base
|
| 54 |
CORN_TREATMENTS = {
|
| 55 |
-
'
|
| 56 |
-
'
|
| 57 |
-
'
|
| 58 |
'Healthy': 'Your corn plant looks healthy! Ensure consistent watering and balanced nitrogen fertilization.'
|
| 59 |
}
|
| 60 |
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
# --- CORN CONFIGURATION ---
|
| 50 |
+
CORN_MODEL_PATH = "CoRn_model.tflite"
|
| 51 |
+
CORN_CLASS_NAMES = ['Common Rust', 'Corn Leaf Blight', 'Gray Leaf Spot', 'Healthy', 'Insects damage']
|
| 52 |
|
| 53 |
# Corn Treatment Knowledge Base
|
| 54 |
CORN_TREATMENTS = {
|
| 55 |
+
'Common Rust': 'Apply fungicides early when pustules first appear. Use rust-resistant corn hybrids for future planting.',
|
| 56 |
+
'Corn Leaf Blight': 'Apply appropriate fungicides. Rotate crops and manage crop residue to reduce fungal spores.',
|
| 57 |
+
'Gray Leaf Spot': 'Use fungicides containing azoxystrobin or pyraclostrobin. Improve air circulation and practice crop rotation.',
|
| 58 |
'Healthy': 'Your corn plant looks healthy! Ensure consistent watering and balanced nitrogen fertilization.'
|
| 59 |
}
|
| 60 |
|