未验证 提交 3e0717a1 编写于 作者: 走神的阿圆's avatar 走神的阿圆 提交者: GitHub

Add stat for x (#700)

上级 10e43271
...@@ -47,7 +47,7 @@ def download(name, ...@@ -47,7 +47,7 @@ def download(name,
version=None, version=None,
decompress=True, decompress=True,
resource_type='Model', resource_type='Model',
extra=None): extra={}):
file = os.path.join(save_path, name) file = os.path.join(save_path, name)
file = os.path.realpath(file) file = os.path.realpath(file)
if os.path.exists(file): if os.path.exists(file):
...@@ -61,7 +61,7 @@ def download(name, ...@@ -61,7 +61,7 @@ def download(name,
if not search_result: if not search_result:
raise ResourceNotFoundError(name, version) raise ResourceNotFoundError(name, version)
CacheUpdater("hub_download", name, version).start() CacheUpdater("x_download", name, version).start()
url = search_result['url'] url = search_result['url']
with tmp_dir() as _dir: with tmp_dir() as _dir:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册