diff --git a/modelscope/utils/hf_util/patcher.py b/modelscope/utils/hf_util/patcher.py index 983faefe..b31b6e1d 100644 --- a/modelscope/utils/hf_util/patcher.py +++ b/modelscope/utils/hf_util/patcher.py @@ -620,7 +620,7 @@ def _patch_hub(): from huggingface_hub import repocard if not hasattr(repocard.RepoCard, '_validate_origin'): - def load(*args, **kwargs): + def load(*args, **kwargs): # noqa from huggingface_hub.errors import EntryNotFoundError raise EntryNotFoundError(message='API not supported.')