Skip to content

Commit 0138e17

Browse files
committed
remove the get_exeuction_blocks rec from AutoPipelineBlocks repr
1 parent bbd9340 commit 0138e17

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/diffusers/modular_pipelines/modular_pipeline.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)