Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Essa função faz o upload dos áudios no bucket
def upload_blob(nome_bucket, nome_arquivo_fonte, nome_blob_destino):
'''Essa função assume que você já fez a autenticação'''
storage_client = storage.Client()
bucket = storage_client.get_bucket(nome_bucket)
blob = bucket.blob(nome_blob_destino)
blob.upload_from_filename(nome_arquivo_fonte)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment