Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/modelscope/modelscope
/ is_transformers_available
Function
is_transformers_available
modelscope/utils/import_utils.py:286–287 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
284
285
286
def
is_transformers_available():
287
return
importlib.util.find_spec(
'transformers'
) is not None
288
289
290
def
is_diffusers_available():
Callers
4
__init__.py
File · 0.90
fix_transformers_upgrade
Function · 0.90
pipeline
Function · 0.90
__init__.py
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…