We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b244d24 commit 6feb45aCopy full SHA for 6feb45a
paddlenlp/taskflow/utils.py
@@ -44,8 +44,6 @@ def download_file(save_dir, filename, url, md5=None):
44
md5(string, optional): The md5 value that checking the version downloaded.
45
"""
46
logger.disable()
47
- if save_dir is None:
48
- return None
49
fullname = os.path.join(save_dir, filename)
50
if os.path.exists(fullname):
51
if md5 and (not md5file(fullname) == md5):
0 commit comments