Corrected is_img2img param
This commit is contained in:
parent
d38ede71d5
commit
6d0cc1e239
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class Api:
|
||||||
def text2imgapi(self, txt2imgreq: StableDiffusionTxt2ImgProcessingAPI):
|
def text2imgapi(self, txt2imgreq: StableDiffusionTxt2ImgProcessingAPI):
|
||||||
if txt2imgreq.script_name is not None:
|
if txt2imgreq.script_name is not None:
|
||||||
if scripts.scripts_txt2img.scripts == []:
|
if scripts.scripts_txt2img.scripts == []:
|
||||||
scripts.scripts_txt2img.initialize_scripts(True)
|
scripts.scripts_txt2img.initialize_scripts(False)
|
||||||
ui.create_ui()
|
ui.create_ui()
|
||||||
|
|
||||||
script_idx = script_name_to_index(txt2imgreq.script_name, scripts.scripts_txt2img.selectable_scripts)
|
script_idx = script_name_to_index(txt2imgreq.script_name, scripts.scripts_txt2img.selectable_scripts)
|
||||||
|
|
Loading…
Reference in a new issue