Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created May 31, 2022 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardgrantserverless/92a2f64bf72c5c538a2575f72cd9944a to your computer and use it in GitHub Desktop.
Save richardgrantserverless/92a2f64bf72c5c538a2575f72cd9944a to your computer and use it in GitHub Desktop.
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