Missing import.

This commit is contained in:
Ubuntu 2023-05-24 09:46:46 +00:00 committed by Nicolas Patry
parent 2362a80a4f
commit 5c2a0e4555

View File

@ -11,6 +11,7 @@ from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE
from huggingface_hub.utils import (
LocalEntryNotFoundError,
EntryNotFoundError, # Import here to ease try/except in other part of the lib
RevisionNotFoundError
)
WEIGHTS_CACHE_OVERRIDE = os.getenv("WEIGHTS_CACHE_OVERRIDE", None)