Spaces:
Sleeping
Sleeping
Commit
·
50b6e05
1
Parent(s):
86ae98c
Update model.py
Browse files
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 |
-
|
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",
|