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 df90f0c.
This commit is contained in:
Pedro Cuenca 2022-08-22 07:21:29 +02:00 committed by GitHub
parent 2b7669183e
commit 6a03060c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ from .import_utils import (
is_torch_available,
is_transformers_available,
is_unidecode_available,
is_modelcards_available,
requires_backends,
)
from .logging import get_logger