usama1355 commited on
Commit
65f3358
·
verified ·
1 Parent(s): 21f996a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -47,14 +47,14 @@ CITRUS_TREATMENTS = {
47
  }
48
 
49
  # --- CORN CONFIGURATION ---
50
- CORN_MODEL_PATH = "corn_model.tflite"
51
- CORN_CLASS_NAMES = ['Blight', 'Common_Rust', 'Gray_Leaf_Spot', 'Healthy']
52
 
53
  # Corn Treatment Knowledge Base
54
  CORN_TREATMENTS = {
55
- 'Blight': 'Apply appropriate fungicides. Rotate crops and manage crop residue to reduce fungal spores.',
56
- 'Common_Rust': 'Apply fungicides early when pustules first appear. Use rust-resistant corn hybrids for future planting.',
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
 
 
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