-
-
Save richardgrantserverless/92a2f64bf72c5c538a2575f72cd9944a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
strFile = '/tmp/imagenet/inputimage.jpg' | |
if ('imagelink' in event): | |
urllib.urlretrieve(event['imagelink'], strFile) | |
else: | |
strBucket = 'ryfeuslambda' | |
strKey = 'tensorflow/imagenet/cropped_panda.jpg' | |
downloadFromS3(strBucket,strKey,strFile) | |
print(strFile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment