From 50c7ddeaeab7ccc9f390505ec820d1844e4aee96 Mon Sep 17 00:00:00 2001 From: DN6 Date: Mon, 18 Aug 2025 14:02:05 +0530 Subject: [PATCH] update --- src/diffusers/utils/dynamic_modules_utils.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/diffusers/utils/dynamic_modules_utils.py b/src/diffusers/utils/dynamic_modules_utils.py index 3c85101953..674eb65773 100644 --- a/src/diffusers/utils/dynamic_modules_utils.py +++ b/src/diffusers/utils/dynamic_modules_utils.py @@ -159,13 +159,6 @@ def check_imports(filename): return get_relative_imports(filename) -def _raise_timeout_error(signum, frame): - raise ValueError( - "Loading this model requires you to execute custom code contained in the model repository on your local " - "machine. Please set the option `trust_remote_code=True` to permit loading of this model." - ) - - 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: