1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00
This commit is contained in:
Dhruv Nair
2023-12-30 11:39:00 +00:00
parent e033f9f608
commit c0d62ac97e

View File

@@ -148,7 +148,8 @@ def build_component(
**kwargs,
):
if component_name in kwargs:
return kwargs.pop(component_name, None)
component = kwargs.pop(component_name, None)
return {component_name: component}
if component_name in pipeline_components:
return {}