diff --git a/twilio_app.py b/twilio_app.py index 01be602..0a4fce7 100644 --- a/twilio_app.py +++ b/twilio_app.py @@ -32,7 +32,7 @@ ) twilio_client = Client(os.environ.get('TWILIO_ACCOUNT_SID', None), os.environ.get('TWILIO_AUTH_TOKEN', None)) -recognizer = RekognitionRecognizer() +recognizer = RekognitionRecognizer(os.environ.get('FACIAL_RECOGNITION_ENDPOINT', None)) failure_message = 'No member recognized, sorry' confidence_levels = [ @@ -145,7 +145,6 @@ def recongize(): try: # Makes POST request with image to app.py on port 8888 logging.info("Sending image to rekognition app...") - #r = requests.post(os.environ.get('FACIAL_RECOGNITION_ENDPOINT'], files={'file': f.getvalue()}) recognizer.recognize(target_image)