Skip to content

Commit

Permalink
Update download.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatetmat authored May 14, 2024
1 parent f87d574 commit 9ea0265
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from google.cloud import storage

print("Start Download")
bucket_name = 'recipable' # 서비스 계정 생성한 bucket 이름 입력
source_blob_name = 'model.pth' # GCP에 저장되어 있는 파일 명
destination_file_name = './model.pth' # 다운받을 파일을 저장할 경로("local/path/to/file")
Expand All @@ -13,3 +14,4 @@
blob = bucket.blob(source_blob_name)

blob.download_to_filename(destination_file_name)
print("End Download")

0 comments on commit 9ea0265

Please sign in to comment.