diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-11-04 05:38:11 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-11-04 05:38:19 +0000 |
commit | 4dd898b8c15e342f817d3fb1c8dc9f2d5d111022 (patch) | |
tree | 9ac38cfb3fab5edf3d61bae2a8825b5755173e5d /scripts/custom_code.py | |
parent | 59a21a67d220d6943be2fc3c5632c02c3ffc99d1 (diff) | |
download | stable-diffusion-webui-gfx803-4dd898b8c15e342f817d3fb1c8dc9f2d5d111022.tar.gz stable-diffusion-webui-gfx803-4dd898b8c15e342f817d3fb1c8dc9f2d5d111022.tar.bz2 stable-diffusion-webui-gfx803-4dd898b8c15e342f817d3fb1c8dc9f2d5d111022.zip |
do not mess with components' visibility for scripts; instead create group components and show/hide those; this will break scripts that create invisible components and rely on UI but the earlier i make this change the better
Diffstat (limited to 'scripts/custom_code.py')
-rw-r--r-- | scripts/custom_code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/custom_code.py b/scripts/custom_code.py index a9b10c09..22e7b77a 100644 --- a/scripts/custom_code.py +++ b/scripts/custom_code.py @@ -14,7 +14,7 @@ class Script(scripts.Script): return cmd_opts.allow_code
def ui(self, is_img2img):
- code = gr.Textbox(label="Python code", visible=False, lines=1)
+ code = gr.Textbox(label="Python code", lines=1)
return [code]
|