Skip to content

Commit 09e1e58

Browse files
committed
fix test
1 parent dc26e47 commit 09e1e58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/pipelines/flux/test_pipeline_flux.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,13 @@ def test_flux_prompt_embeds(self):
138138
inputs = self.get_dummy_inputs(torch_device)
139139
prompt = inputs.pop("prompt")
140140

141-
(prompt_embeds, pooled_prompt_embeds, text_ids) = pipe.encode_prompt(
141+
prompt_outputs = pipe.encode_prompt(
142142
prompt,
143143
prompt_2=None,
144144
device=torch_device,
145145
max_sequence_length=inputs["max_sequence_length"],
146146
)
147+
prompt_embeds, pooled_prompt_embeds = prompt_outputs[0], prompt_outputs[1]
147148
output_with_embeds = pipe(
148149
prompt_embeds=prompt_embeds,
149150
pooled_prompt_embeds=pooled_prompt_embeds,

0 commit comments

Comments
 (0)