Skip to content

Commit 4b2b2b2

Browse files
committed
update
1 parent 0db2ea2 commit 4b2b2b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/utils/dynamic_modules_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ def resolve_trust_remote_code(trust_remote_code, model_name, has_remote_code):
170170
trust_remote_code = trust_remote_code and not DIFFUSERS_DISABLE_REMOTE_CODE
171171
if DIFFUSERS_DISABLE_REMOTE_CODE:
172172
logger.warning(
173-
"Remote code execution has been disabled globally via DIFFUSERS_DISABLE_REMOTE_CODE environment variable. Ignoring `trust_remote_code`."
173+
"Downloading remote code is disabled globally via the DIFFUSERS_DISABLE_REMOTE_CODE environment variable. Ignoring `trust_remote_code`."
174174
)
175175

176176
if has_remote_code and not trust_remote_code:
177177
error_msg = f"The repository for {model_name} contains custom code. "
178178
error_msg += (
179-
"Remote code is disabled globally via DIFFUSERS_DISABLE_REMOTE_CODE."
179+
"Downloading remote code is disabled globally via the DIFFUSERS_DISABLE_REMOTE_CODE environment variable."
180180
if DIFFUSERS_DISABLE_REMOTE_CODE
181181
else "Pass `trust_remote_code=True` to allow loading remote code modules."
182182
)

0 commit comments

Comments
 (0)