Corrected is_img2img param

This commit is contained in:
noodleanon 2023-01-08 11:03:48 +00:00 committed by GitHub
parent d38ede71d5
commit 6d0cc1e239
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ class Api:
def text2imgapi(self, txt2imgreq: StableDiffusionTxt2ImgProcessingAPI):
if txt2imgreq.script_name is not None:
if scripts.scripts_txt2img.scripts == []:
scripts.scripts_txt2img.initialize_scripts(True)
scripts.scripts_txt2img.initialize_scripts(False)
ui.create_ui()
script_idx = script_name_to_index(txt2imgreq.script_name, scripts.scripts_txt2img.selectable_scripts)