Neurolingua commited on
Commit
cebceb2
·
verified ·
1 Parent(s): f7fa94a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -56,7 +56,8 @@ def whatsapp_webhook():
56
  if content_type.startswith('image/'):
57
  # Handle image processing (disease/pest detection)
58
  filepath = convert_img(media_url, account_sid, auth_token)
59
- if os.path.exists(filepath):
 
60
  if predict_disease(filepath):
61
 
62
  response_text = predict_disease(filepath)
@@ -65,7 +66,7 @@ def whatsapp_webhook():
65
  else:
66
  response_text = "Please upload other image with good quality."
67
  else:
68
- response_text = 'No data'
69
 
70
  else:
71
  # Handle PDF processing
 
56
  if content_type.startswith('image/'):
57
  # Handle image processing (disease/pest detection)
58
  filepath = convert_img(media_url, account_sid, auth_token)
59
+ response_text = =media_url
60
+ '''if os.path.exists(filepath):
61
  if predict_disease(filepath):
62
 
63
  response_text = predict_disease(filepath)
 
66
  else:
67
  response_text = "Please upload other image with good quality."
68
  else:
69
+ response_text = 'No data''''
70
 
71
  else:
72
  # Handle PDF processing