"torchvision/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "dc7db17e7724b9d56cbd45931b0788540aaf2586"
Unverified Commit 6a03060c authored by Pedro Cuenca's avatar Pedro Cuenca Committed by GitHub
Browse files

Restore `is_modelcards_available` in `.utils` (#224)

Restore `is_modelcards_available` in `.utils`.

Otherwise attempting to import `hub_utils` (in training scripts, for
example), fails.

This was removed during the refactor in df90f0ce.
parent 2b766918
...@@ -33,6 +33,7 @@ from .import_utils import ( ...@@ -33,6 +33,7 @@ from .import_utils import (
is_torch_available, is_torch_available,
is_transformers_available, is_transformers_available,
is_unidecode_available, is_unidecode_available,
is_modelcards_available,
requires_backends, requires_backends,
) )
from .logging import get_logger from .logging import get_logger
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment