moved images to

This commit is contained in:
AUTOMATIC
2022-09-04 13:08:06 +03:00
parent b99a47b12d
commit 836b646374
15 changed files with 34 additions and 217 deletions

View File

@@ -9,7 +9,8 @@ class Script(scripts.Script):
def title(self):
return "Custom code"
def enabled(self):
def show(self, is_img2img):
return cmd_opts.allow_code
def ui(self, is_img2img):
@@ -18,8 +19,7 @@ class Script(scripts.Script):
return [code]
def run(self, p, code):
if not cmd_opts.allow_code:
return
assert cmd_opts.allow_code, '--allow-code option must be enabled'
display_result_data = [[], -1, ""]