mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Update modules/api/api.py
Suggested change by @akx Co-authored-by: Aarni Koskela <akx@iki.fi>
This commit is contained in:
parent
c48bbccf12
commit
f85a192f99
@ -177,14 +177,8 @@ class Api:
|
||||
return script, script_idx
|
||||
|
||||
def get_scripts_list(self):
|
||||
t2ilist = []
|
||||
i2ilist = []
|
||||
|
||||
for a in scripts.scripts_txt2img.titles:
|
||||
t2ilist.append(str(a.lower()))
|
||||
|
||||
for b in scripts.scripts_img2img.titles:
|
||||
i2ilist.append(str(b.lower()))
|
||||
t2ilist = [str(title.lower()) for title in scripts.scripts_txt2img.titles]
|
||||
i2ilist = [str(title.lower()) for title in scripts.scripts_img2img.titles]
|
||||
|
||||
return ScriptsList(txt2img = t2ilist, img2img = i2ilist)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user