From 74bd93ab23ce8431c5d830ea31600e25f515de30 Mon Sep 17 00:00:00 2001 From: Yingda Chen Date: Thu, 5 Dec 2024 09:25:29 +0800 Subject: [PATCH] fix missing import --- modelscope/hub/utils/caching.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modelscope/hub/utils/caching.py b/modelscope/hub/utils/caching.py index 993fb1cd..e1dcf83b 100644 --- a/modelscope/hub/utils/caching.py +++ b/modelscope/hub/utils/caching.py @@ -7,7 +7,8 @@ import tempfile from shutil import move, rmtree from typing import Dict -from modelscope.hub.constants import FILE_HASH +from modelscope.hub.constants import ( # noqa + FILE_HASH, MODELSCOPE_ENABLE_DEFAULT_HASH_VALIDATION) from modelscope.hub.utils.utils import compute_hash from modelscope.utils.logger import get_logger