Browse Source

fix auto download url

tags/v0.4.10
Yige Xu 5 years ago
parent
commit
dd080b5825
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      fastNLP/io/file_utils.py

+ 2
- 2
fastNLP/io/file_utils.py View File

@@ -222,8 +222,8 @@ def _get_base_url(name):
return url + '/'
else:
URLS = {
'embedding': "http://dbcloud.irocn.cn:8989/api/public/dl/",
"dataset": "http://dbcloud.irocn.cn:8989/api/public/dl/dataset/"
'embedding': "http://fudan.irocn.cn:8989/api/public/dl/",
"dataset": "http://fudan.irocn.cn:8989/api/public/dl/dataset/"
}
if name.lower() not in URLS:
raise KeyError(f"{name} is not recognized.")


Loading…
Cancel
Save