Adjusted prefix from i2i/t2i to txt2img and img2img and removed those prefixes from img exclusive scripts

This commit is contained in:
me
2023-01-05 08:27:09 +01:00
parent 5851bc839b
commit c3109fa18a
9 changed files with 9 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ class Script(scripts.Script):
return cmd_opts.allow_code
def ui(self, is_img2img):
elem_prefix = ('i2i' if is_img2img else 't2i') + '_script_custom_code_'
elem_prefix = ('img2img' if is_img2img else 'txt2txt') + '_script_custom_code_'
code = gr.Textbox(label="Python code", lines=1, elem_id=elem_prefix + "code")