fix python 3.9 compatibility

This commit is contained in:
Vladimir Mandic
2023-08-23 08:18:40 +00:00
parent 3d1bcf88a2
commit 84f343687d
2 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ CLIP_SKIP_MAPPING = {
def compel_encode_prompts(
pipeline: diffusers.StableDiffusionXLPipeline | diffusers.StableDiffusionPipeline,
pipeline,
prompts: list,
negative_prompts: list,
prompts_2: typing.Optional[list] = None,
@@ -67,7 +67,7 @@ def compel_encode_prompts(
def compel_encode_prompt(
pipeline: diffusers.StableDiffusionXLPipeline | diffusers.StableDiffusionPipeline,
pipeline,
prompt: str,
negative_prompt: str,
prompt_2: typing.Optional[str] = None,