Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
FINE
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjbowers committed Sep 18, 2017
1 parent dffea10 commit 3abe15a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions twilio_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 3abe15a

Please sign in to comment.