mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-03 19:02:27 +00:00
Adjusted prefix from i2i/t2i to txt2img and img2img and removed those prefixes from img exclusive scripts
This commit is contained in:
@@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user