This commit is contained in:
nick 2024-08-20 19:41:23 -07:00
parent dfee31f0ed
commit 67703abb8a

View File

@ -234,7 +234,7 @@ def apply_random_seed_to_workflow(workflow_api):
workflow_api (dict): The workflow API dictionary to modify. workflow_api (dict): The workflow API dictionary to modify.
""" """
for key in workflow_api: for key in workflow_api:
if 'inputs' in workflow_api[key] if 'inputs' in workflow_api[key]:
if 'seed' in workflow_api[key]['inputs']: if 'seed' in workflow_api[key]['inputs']:
if isinstance(workflow_api[key]['inputs']['seed'], list): if isinstance(workflow_api[key]['inputs']['seed'], list):
continue continue