Last active
July 8, 2019 03:08
-
-
Save RoaldSchuring/f5a50b2ed0de8638cf42d4d1a9628d79 to your computer and use it in GitHub Desktop.
download_model_objects
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
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