We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 675454e commit af7fb43Copy full SHA for af7fb43
src/onepiece_classify/utils/downloader.py
@@ -7,10 +7,8 @@ def downloader(output_file):
7
prefix = 'https://drive.google.com/uc?/export=download&id='
8
9
url_download = prefix+file_id
10
- filename = "checkpoint_notebook.pth"
11
- if Path(output_file).joinpath(filename).exists():
12
- print("The model has been downloaded")
13
- else:
+
+ if not Path(output_file).exists():
14
print("Downloading...")
15
gdown.download(url_download, output_file)
16
print("Download Finish...")
0 commit comments