Revert Script changes
This commit is contained in:
parent
5de8c81106
commit
4a879dc6a2
|
@ -56,12 +56,6 @@ class Script:
|
||||||
def describe(self):
|
def describe(self):
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
# If your script is only compatible with a subset of samplers, return the sampler
|
|
||||||
# names here, an empty list indicates compatibility with all samplers, for a full
|
|
||||||
# listing of current sampler names import modules.sd_samplers.samplers
|
|
||||||
def compatible_samplers(self):
|
|
||||||
return []
|
|
||||||
|
|
||||||
scripts_data = []
|
scripts_data = []
|
||||||
|
|
||||||
|
|
||||||
|
@ -138,10 +132,6 @@ class ScriptRunner:
|
||||||
control.custom_script_source = os.path.basename(script.filename)
|
control.custom_script_source = os.path.basename(script.filename)
|
||||||
control.visible = False
|
control.visible = False
|
||||||
|
|
||||||
concat_compatible_samplers = ",".join(script.compatible_samplers())
|
|
||||||
inputs += [gr.HTML(value='<span class="customScriptAttrs" data-supported-samplers="{}"></span>'.format(concat_compatible_samplers))]
|
|
||||||
inputs[-1].visible=False
|
|
||||||
|
|
||||||
inputs += controls
|
inputs += controls
|
||||||
script.args_to = len(inputs)
|
script.args_to = len(inputs)
|
||||||
|
|
||||||
|
@ -189,7 +179,7 @@ class ScriptRunner:
|
||||||
if script is None:
|
if script is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
script_args = args[script.args_from+1:script.args_to]
|
script_args = args[script.args_from:script.args_to]
|
||||||
processed = script.run(p, *script_args)
|
processed = script.run(p, *script_args)
|
||||||
|
|
||||||
shared.total_tqdm.clear()
|
shared.total_tqdm.clear()
|
||||||
|
|
Loading…
Reference in New Issue