We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b2b2b2 commit 50c7ddeCopy full SHA for 50c7dde
src/diffusers/utils/dynamic_modules_utils.py
@@ -159,13 +159,6 @@ def check_imports(filename):
159
return get_relative_imports(filename)
160
161
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
169
def resolve_trust_remote_code(trust_remote_code, model_name, has_remote_code):
170
trust_remote_code = trust_remote_code and not DIFFUSERS_DISABLE_REMOTE_CODE
171
if DIFFUSERS_DISABLE_REMOTE_CODE:
0 commit comments