Skip to content

Instantly share code, notes, and snippets.

@RoaldSchuring
Last active July 8, 2019 03:08
Show Gist options
  • Save RoaldSchuring/f5a50b2ed0de8638cf42d4d1a9628d79 to your computer and use it in GitHub Desktop.
Save RoaldSchuring/f5a50b2ed0de8638cf42d4d1a9628d79 to your computer and use it in GitHub Desktop.
download_model_objects
s3 = boto3.resource('s3')
key = bt_model.model_data[bt_model.model_data.find("/", 5)+1:]
s3.Bucket(bucket).download_file(key, 'model.tar.gz')
!tar -xvzf model.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment