Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

bucket-storage.py 683 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  1. from dagshub import get_repo_bucket_client
  2. # Get a boto3.client object
  3. s3 = get_repo_bucket_client("glennlum/svhn-recognition-deep-learning-model")
  4. # Upload data file
  5. s3.upload_file(
  6. Bucket="svhn-recognition-deep-learning-model", # name of the repo
  7. Filename="SVHN_single_grey1.h5", # local path of file to upload
  8. Key="remote/SVHN_single_grey1.h5", # remote path where to upload the file
  9. )
  10. # Download data file
  11. s3.download_file(
  12. Bucket="svhn-recognition-deep-learning-model", # name of the repo
  13. Key="remote/SVHN_single_grey1.h5", # remote path from where to download the file
  14. Filename="SVHN_single_grey1.h5", # local path where to download the file
  15. )
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...