From 101b9249f840e3a8075c0829dbc8a5e07db57b5c Mon Sep 17 00:00:00 2001 From: Yingda Chen Date: Thu, 5 Dec 2024 09:26:34 +0800 Subject: [PATCH] fix missing import (#1126) Co-authored-by: Yingda Chen --- 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