Spaces:
Build error
Build error
Commit ·
fe09394
1
Parent(s): c968cf6
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,15 +68,26 @@ def cause(img):
|
|
| 68 |
return(cause,treat,sug)
|
| 69 |
elif res == "early-blight":
|
| 70 |
cause = "the cause is fungus Alternaria solani which survives in plant debris or on infected plants."
|
| 71 |
-
|
|
|
|
|
|
|
| 72 |
elif res == "bacterial-leaf-spot":
|
| 73 |
print("the causes of", res,
|
| 74 |
" is Xanthomonas campestris pv. vesicatoria. It is a gram-negative, rod-shaped bacterium that can survive in seeds and plant debris from one season to another")
|
|
|
|
|
|
|
|
|
|
| 75 |
elif res == "late-blight":
|
| 76 |
cause = "the cause is fungus Phytophthora infestans."
|
|
|
|
|
|
|
|
|
|
| 77 |
elif res == "Leaf_mold":
|
| 78 |
cause = "the cause is the fungus Passalora fulva."
|
| 79 |
# print("the cause of",res,"is the fungus Passalora fulva.")
|
|
|
|
|
|
|
|
|
|
| 80 |
elif res == "mosaic-virus":
|
| 81 |
cause = "the cause is that aphid activity in fields is high"
|
| 82 |
sug=listToString(suggestions)
|
|
|
|
| 68 |
return(cause,treat,sug)
|
| 69 |
elif res == "early-blight":
|
| 70 |
cause = "the cause is fungus Alternaria solani which survives in plant debris or on infected plants."
|
| 71 |
+
sug=listToString(suggestions)
|
| 72 |
+
return(cause,treat,sug)
|
| 73 |
+
|
| 74 |
elif res == "bacterial-leaf-spot":
|
| 75 |
print("the causes of", res,
|
| 76 |
" is Xanthomonas campestris pv. vesicatoria. It is a gram-negative, rod-shaped bacterium that can survive in seeds and plant debris from one season to another")
|
| 77 |
+
sug=listToString(suggestions)
|
| 78 |
+
return(cause,treat,sug)
|
| 79 |
+
|
| 80 |
elif res == "late-blight":
|
| 81 |
cause = "the cause is fungus Phytophthora infestans."
|
| 82 |
+
sug=listToString(suggestions)
|
| 83 |
+
return(cause,treat,sug)
|
| 84 |
+
|
| 85 |
elif res == "Leaf_mold":
|
| 86 |
cause = "the cause is the fungus Passalora fulva."
|
| 87 |
# print("the cause of",res,"is the fungus Passalora fulva.")
|
| 88 |
+
sug=listToString(suggestions)
|
| 89 |
+
return(cause,treat,sug)
|
| 90 |
+
|
| 91 |
elif res == "mosaic-virus":
|
| 92 |
cause = "the cause is that aphid activity in fields is high"
|
| 93 |
sug=listToString(suggestions)
|