Neurolingua commited on
Commit
e9086c4
1 Parent(s): 0c655f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -7,7 +7,7 @@ from PIL import Image
7
  import io
8
  import uuid
9
  import shutil
10
- from other_function import predict_pest,predict_disease,convert_img
11
  app = Flask(__name__)
12
  UPLOAD_FOLDER = '/code/uploads'
13
  if not os.path.exists(UPLOAD_FOLDER):
@@ -59,8 +59,7 @@ def whatsapp_webhook():
59
  return '', 204 # Return an empty response to Twilio
60
 
61
  def get_agricultural_insights(query):
62
- # Implement your agricultural insights logic here
63
- return f"Insights related to: {query}"
64
 
65
  def send_message(to, body):
66
  try:
 
7
  import io
8
  import uuid
9
  import shutil
10
+ from other_function import predict_pest,predict_disease,convert_img,generate_response
11
  app = Flask(__name__)
12
  UPLOAD_FOLDER = '/code/uploads'
13
  if not os.path.exists(UPLOAD_FOLDER):
 
59
  return '', 204 # Return an empty response to Twilio
60
 
61
  def get_agricultural_insights(query):
62
+ return generate_response(query)
 
63
 
64
  def send_message(to, body):
65
  try: