Dricz commited on
Commit
afa0131
·
verified ·
1 Parent(s): 2fbad9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -70,11 +70,11 @@ def response2(image: gr.Image = None,image_size: gr.Slider = 640, conf_threshold
70
  text += (f"Detected {name[cl]} with confidence {round(conef,1)}% at ({xy[0]},{xy[1]})\n")
71
 
72
  if name[cl] == "Corn Rust":
73
- solution = solution + "Apply fungicides with active ingredients like propiconazole or tebuconazole when symptoms appear.\n"
74
  elif name[cl] == "Gray Leaf Spot":
75
- solution = solution + "Use fungicides containing strobilurins (e.g., azoxystrobin) or triazoles.\n"
76
  elif name[cl] == "Leaf Blight":
77
- solution = solution + "Treat with fungicides such as mancozeb or chlorothalonil during the early stages.\n"
78
 
79
  # xywh = int(results.boxes.xywh)
80
  # x = xywh[0]
 
70
  text += (f"Detected {name[cl]} with confidence {round(conef,1)}% at ({xy[0]},{xy[1]})\n")
71
 
72
  if name[cl] == "Corn Rust":
73
+ solution = "Apply fungicides with active ingredients like propiconazole or tebuconazole when symptoms appear.\n"
74
  elif name[cl] == "Gray Leaf Spot":
75
+ solution = solution + "Use fungicides containing strobilurins (e.g., azoxystrobin) or triazoles.\n"
76
  elif name[cl] == "Leaf Blight":
77
+ solution = solution + "Treat with fungicides such as mancozeb or chlorothalonil during the early stages.\n"
78
 
79
  # xywh = int(results.boxes.xywh)
80
  # x = xywh[0]