mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
merge: modules/api/script.py
This commit is contained in:
@@ -29,6 +29,7 @@ def get_selectable_script(script_name, script_runner):
|
||||
|
||||
|
||||
def get_scripts_list():
|
||||
"""List available scripts grouped by pipeline (txt2img, img2img, control)."""
|
||||
t2ilist = [script.name for script in scripts_manager.scripts_txt2img.scripts if script.name is not None]
|
||||
i2ilist = [script.name for script in scripts_manager.scripts_img2img.scripts if script.name is not None]
|
||||
control = [script.name for script in scripts_manager.scripts_control.scripts if script.name is not None]
|
||||
@@ -36,6 +37,7 @@ def get_scripts_list():
|
||||
|
||||
|
||||
def get_script_info(script_name: str | None = None):
|
||||
"""Return detailed info for scripts including their UI arguments. Optionally filter by script name."""
|
||||
res = []
|
||||
for script_list in [scripts_manager.scripts_txt2img.scripts, scripts_manager.scripts_img2img.scripts, scripts_manager.scripts_control.scripts]:
|
||||
for script in script_list:
|
||||
|
||||
Reference in New Issue
Block a user