diegokauer commited on
Commit
50b6e05
·
1 Parent(s): 86ae98c

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -2
model.py CHANGED
@@ -25,8 +25,7 @@ def generate_download_signed_url_v4(blob_name):
25
 
26
  storage_client = storage.Client()
27
  bucket = storage_client.bucket(bucket_name)
28
- print(blob_name)
29
- blob = bucket.blob(blob_name)
30
 
31
  url = blob.generate_signed_url(
32
  version="v4",
 
25
 
26
  storage_client = storage.Client()
27
  bucket = storage_client.bucket(bucket_name)
28
+ blob = bucket.blob(blob_name.strip(f"gs://{bucket_name}/"))
 
29
 
30
  url = blob.generate_signed_url(
31
  version="v4",