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

Commit

Permalink
why am I even on this earth
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjbowers committed Sep 21, 2017
1 parent 6e7a897 commit 3f024dd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions twilio_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,21 +166,19 @@ def recongize():

# IT IS FAILING RIGHT HERE APPARENTLY
# s3.Bucket('int.nyt.com').put_object(Key=key_str, Body=target_image.get_image_file(), ContentType='image/png')
# url = persist_file(key_str, target_image.get_image_file())

url = persist_file(key_str, target_image.get_image_file())

# url = "https://int.nyt.com/" + key_str
url = "https://int.nyt.com/" + key_str
logging.info("Image uploaded to: " + url)
logging.info("\n".join(face_messages))
resp.message("\n".join(face_messages))

message = twilio_client.messages.create(
to=external_num,
from_=twilio_num,
media_url=url)
message = twilio_client.messages.create(to=external_num, from_=twilio_num,media_url=url)

else:
logging.info("Failure message sent")
resp.message(failure_message)

finally:
del target_image

Expand Down

0 comments on commit 3f024dd

Please sign in to comment.