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

Commit

Permalink
Let's try this again
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjbowers committed Sep 25, 2017
1 parent 3f024dd commit 6c92b34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ six==1.10.0
twilio==6.5.1
urllib3==1.22
Werkzeug==0.12.2
google-cloud-storage
4 changes: 3 additions & 1 deletion twilio_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from rekognitionrecognizer import RekognitionRecognizer
from face import Face

from google.cloud import storage

app = Flask(__name__)
healthcheck_filter = HealthcheckFilter()
log = logging.getLogger('werkzeug')
Expand Down Expand Up @@ -166,7 +168,7 @@ 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
logging.info("Image uploaded to: " + url)
Expand Down

0 comments on commit 6c92b34

Please sign in to comment.