Spaces:
Runtime error
Runtime error
File size: 672 Bytes
b6f0f70 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from google.cloud import storage
# def create_gcs_client():
# return storage.Client.from_service_account_json(
# json_credentials_path = 'docpet-project-ch2-ps068-a53f10c5c713.json'
# )
def upload_blob(bucket_name, source_file_name, destination_blob_name):
print("iwan fals: 'dar der dor suara senapan...'")
# """Uploads a file to the bucket."""
# storage_client = create_gcs_client()
# bucket = storage_client.bucket(bucket_name)
# blob = bucket.blob(destination_blob_name)
# blob.upload_from_filename(source_file_name)
# print('File {} uploaded to {}.'.format(
# source_file_name,
# destination_blob_name)) |