MCPcopy Index your code
hub / github.com/huggingface/diffusers / get_existing_components

Function get_existing_components

utils/label_issues.py:72–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71
72def get_existing_components():
73 pipelines_dir = os.path.join("src", "diffusers", "pipelines")
74 models_dir = os.path.join("src", "diffusers", "models")
75
76 names = set()
77 for d in [pipelines_dir, models_dir]:
78 if os.path.isdir(d):
79 for entry in os.listdir(d):
80 if not entry.startswith("_") and not entry.startswith("."):
81 names.add(entry.replace(".py", "").lower())
82
83 return names
84
85
86def main():

Callers 1

mainFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…