File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/diffusers/modular_pipelines Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -815,10 +815,7 @@ def __repr__(self):
815815 header += "\n "
816816 header += " " + "=" * 100 + "\n "
817817 header += " This pipeline contains blocks that are selected at runtime based on inputs.\n "
818- header += f" Trigger Inputs: { self .trigger_inputs } \n "
819- # Get first trigger input as example
820- example_input = next (t for t in self .trigger_inputs if t is not None )
821- header += f" Use `get_execution_blocks()` with input names to see selected blocks (e.g. `get_execution_blocks('{ example_input } ')`).\n "
818+ header += f" Trigger Inputs: { [inp for inp in self .trigger_inputs if inp is not None ]} \n "
822819 header += " " + "=" * 100 + "\n \n "
823820
824821 # Format description with proper indentation
@@ -1178,7 +1175,7 @@ def __repr__(self):
11781175 header += "\n "
11791176 header += " " + "=" * 100 + "\n "
11801177 header += " This pipeline contains blocks that are selected at runtime based on inputs.\n "
1181- header += f" Trigger Inputs: { self .trigger_inputs } \n "
1178+ header += f" Trigger Inputs: { [ inp for inp in self .trigger_inputs if inp is not None ] } \n "
11821179 # Get first trigger input as example
11831180 example_input = next (t for t in self .trigger_inputs if t is not None )
11841181 header += f" Use `get_execution_blocks()` with input names to see selected blocks (e.g. `get_execution_blocks('{ example_input } ')`).\n "
You can’t perform that action at this time.
0 commit comments