Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def download_output(output_bucket, filename):
- """Downloads the output file from Cloud Storage and returns it as a
- string."""
- print('Downloading output file')
- client = storage.Client()
- bucket = client.get_bucket(output_bucket)
- output_blob = (
- 'keys/{}'
- .format(filename))
- return bucket.blob(output_blob).download_as_string()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement