This commit is contained in:
xingjun.wxj
2025-03-11 10:38:16 +08:00
parent 49b94409c1
commit 26ef8bb229

View File

@@ -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.')