Skip to content

Instantly share code, notes, and snippets.

@Geremie
Created February 28, 2021 18:26
Show Gist options
  • Save Geremie/803e3b3c94c32f2f24a5565e9d5ce1b2 to your computer and use it in GitHub Desktop.
Save Geremie/803e3b3c94c32f2f24a5565e9d5ce1b2 to your computer and use it in GitHub Desktop.
Never struggle again to share data between your Kubeflow Pipelines components
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