Skip to content

Commit 50c7dde

Browse files
committed
update
1 parent 4b2b2b2 commit 50c7dde

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/diffusers/utils/dynamic_modules_utils.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,6 @@ def check_imports(filename):
159159
return get_relative_imports(filename)
160160

161161

162-
def _raise_timeout_error(signum, frame):
163-
raise ValueError(
164-
"Loading this model requires you to execute custom code contained in the model repository on your local "
165-
"machine. Please set the option `trust_remote_code=True` to permit loading of this model."
166-
)
167-
168-
169162
def resolve_trust_remote_code(trust_remote_code, model_name, has_remote_code):
170163
trust_remote_code = trust_remote_code and not DIFFUSERS_DISABLE_REMOTE_CODE
171164
if DIFFUSERS_DISABLE_REMOTE_CODE:

0 commit comments

Comments
 (0)