Spaces:
Sleeping
Sleeping
Neurolingua
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -42,8 +42,9 @@ def whatsapp_webhook():
|
|
42 |
|
43 |
|
44 |
|
45 |
-
|
46 |
-
|
|
|
47 |
else:
|
48 |
response_text = "Please specify if you want to detect a pest or a disease."
|
49 |
|
|
|
42 |
|
43 |
|
44 |
|
45 |
+
if filepath:
|
46 |
+
|
47 |
+
response_text = predict_disease(filepath)
|
48 |
else:
|
49 |
response_text = "Please specify if you want to detect a pest or a disease."
|
50 |
|