Spaces:
Sleeping
Sleeping
Neurolingua
commited on
Commit
•
6510aba
1
Parent(s):
e9ec5c3
Update app.py
Browse files
app.py
CHANGED
@@ -42,11 +42,13 @@ def whatsapp_webhook():
|
|
42 |
|
43 |
|
44 |
|
45 |
-
if filepath:
|
46 |
|
47 |
response_text = predict_disease(filepath)
|
|
|
|
|
48 |
else:
|
49 |
-
response_text = "Please
|
50 |
|
51 |
else:
|
52 |
response_text = "The attached file is not an image. Please send an image for classification."
|
|
|
42 |
|
43 |
|
44 |
|
45 |
+
if predict_disease(filepath):
|
46 |
|
47 |
response_text = predict_disease(filepath)
|
48 |
+
elif predict_pest(filepath):
|
49 |
+
response_text=predict_pest(filepath)
|
50 |
else:
|
51 |
+
response_text = "Please upload other image with good quality."
|
52 |
|
53 |
else:
|
54 |
response_text = "The attached file is not an image. Please send an image for classification."
|