Created
February 28, 2021 18:26
-
-
Save Geremie/803e3b3c94c32f2f24a5565e9d5ce1b2 to your computer and use it in GitHub Desktop.
Never struggle again to share data between your Kubeflow Pipelines components
This file contains hidden or 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
| def download_blob(source_bucket_name: str, source_blob_name: str, dest_file_path: OutputPath()): | |
| from google.cloud import storage | |
| storage_client = storage.Client() | |
| bucket = storage_client.bucket(source_bucket_name) | |
| blob = bucket.blob(source_blob_name) | |
| blob.download_to_filename(dest_file_path) | |
| get_model_location_task = GET_MODEL_LOCATION_OP(bucket_name, model_folder) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment