From eed8824ee87e5aaa61f8ab6fb20015e5c8a16775 Mon Sep 17 00:00:00 2001 From: Zhengyang Song Date: Wed, 29 Mar 2023 10:09:56 +0800 Subject: [PATCH] Fix wrong url in file_download comment; as well as remove wrong comment in dgds/backbone. (#233) --- modelscope/hub/file_download.py | 2 +- modelscope/models/nlp/dgds/backbone.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modelscope/hub/file_download.py b/modelscope/hub/file_download.py index 7a731b79..380d2432 100644 --- a/modelscope/hub/file_download.py +++ b/modelscope/hub/file_download.py @@ -160,7 +160,7 @@ def model_file_download( def get_file_download_url(model_id: str, file_path: str, revision: str): """Format file download url according to `model_id`, `revision` and `file_path`. e.g., Given `model_id=john/bert`, `revision=master`, `file_path=README.md`, - the resulted download url is: https://modelscope.co/api/v1/models/john/bert/repo?Revision=master&FilePath=README.md + the resulted download url is: https://modelscope.cn/api/v1/models/john/bert/repo?Revision=master&FilePath=README.md Args: model_id (str): The model_id. diff --git a/modelscope/models/nlp/dgds/backbone.py b/modelscope/models/nlp/dgds/backbone.py index a4f9ef42..17e3c574 100644 --- a/modelscope/models/nlp/dgds/backbone.py +++ b/modelscope/models/nlp/dgds/backbone.py @@ -13,7 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -"""PyTorch BERT model.""" from __future__ import absolute_import, division, print_function import os.path