mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-16 16:27:45 +01:00
fix lint
This commit is contained in:
@@ -620,7 +620,7 @@ def _patch_hub():
|
|||||||
from huggingface_hub import repocard
|
from huggingface_hub import repocard
|
||||||
if not hasattr(repocard.RepoCard, '_validate_origin'):
|
if not hasattr(repocard.RepoCard, '_validate_origin'):
|
||||||
|
|
||||||
def load(*args, **kwargs):
|
def load(*args, **kwargs): # noqa
|
||||||
from huggingface_hub.errors import EntryNotFoundError
|
from huggingface_hub.errors import EntryNotFoundError
|
||||||
raise EntryNotFoundError(message='API not supported.')
|
raise EntryNotFoundError(message='API not supported.')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user