[Bugfix] Fix f-string formatting in image generation pipelines (#689)

Signed-off-by: ApsarasX <apsarax@outlook.com>
This commit is contained in:
ApsarasX authored and GitHub committed 2026-01-07 14:12:58 +00:00
1 parent 27b804cea7
commit 89f47c910a
3 files changed
+3 -3

No files matched your search

@@ -328,7 +328,7 @@ class OvisImagePipeline(
"Provide either `prompt` or `prompt_embeds`. Cannot leave both `prompt` and `prompt_embeds` undefined."
)
elif prompt is not None and (not isinstance(prompt, str) and not isinstance(prompt, list)):
raise ValueError("`prompt` has to be of type `str` or `list[str]` but is {type(prompt)}")
raise ValueError(f"`prompt` has to be of type `str` or `list[str]` but is {type(prompt)}")
if negative_prompt is not None and negative_prompt_embeds is not None:
raise ValueError(