Neurolingua commited on
Commit
a2da878
1 Parent(s): 4746643

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -56,8 +56,7 @@ 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
- response_text = media_url
60
- '''if os.path.exists(filepath):
61
  if predict_disease(filepath):
62
 
63
  response_text = predict_disease(filepath)
@@ -66,7 +65,7 @@ def whatsapp_webhook():
66
  else:
67
  response_text = "Please upload other image with good quality."
68
  else:
69
- response_text = '''
70
 
71
  else:
72
  # 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
+ if 1==1:
 
60
  if predict_disease(filepath):
61
 
62
  response_text = predict_disease(filepath)
 
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