aboutsummaryrefslogtreecommitdiff
path: root/scripts/custom_code.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-11-04 08:38:11 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-11-04 08:38:19 +0300
commit4dd898b8c15e342f817d3fb1c8dc9f2d5d111022 (patch)
tree9ac38cfb3fab5edf3d61bae2a8825b5755173e5d /scripts/custom_code.py
parent59a21a67d220d6943be2fc3c5632c02c3ffc99d1 (diff)
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.py2
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]