From 4b2b2b221bc8d287d892cd3913099355ca11e5f6 Mon Sep 17 00:00:00 2001 From: DN6 Date: Mon, 18 Aug 2025 13:29:07 +0530 Subject: [PATCH] update --- src/diffusers/utils/dynamic_modules_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diffusers/utils/dynamic_modules_utils.py b/src/diffusers/utils/dynamic_modules_utils.py index 08cd4ca1eb..3c85101953 100644 --- a/src/diffusers/utils/dynamic_modules_utils.py +++ b/src/diffusers/utils/dynamic_modules_utils.py @@ -170,13 +170,13 @@ def resolve_trust_remote_code(trust_remote_code, model_name, has_remote_code): trust_remote_code = trust_remote_code and not DIFFUSERS_DISABLE_REMOTE_CODE if DIFFUSERS_DISABLE_REMOTE_CODE: logger.warning( - "Remote code execution has been disabled globally via DIFFUSERS_DISABLE_REMOTE_CODE environment variable. Ignoring `trust_remote_code`." + "Downloading remote code is disabled globally via the DIFFUSERS_DISABLE_REMOTE_CODE environment variable. Ignoring `trust_remote_code`." ) if has_remote_code and not trust_remote_code: error_msg = f"The repository for {model_name} contains custom code. " error_msg += ( - "Remote code is disabled globally via DIFFUSERS_DISABLE_REMOTE_CODE." + "Downloading remote code is disabled globally via the DIFFUSERS_DISABLE_REMOTE_CODE environment variable." if DIFFUSERS_DISABLE_REMOTE_CODE else "Pass `trust_remote_code=True` to allow loading remote code modules." )