enh: comfyui seed node support

This commit is contained in:
Timothy J. Baek
2024-08-21 23:05:20 +02:00
parent f3f6941205
commit 95cf90d787
2 changed files with 20 additions and 13 deletions

View File

@@ -133,7 +133,7 @@ async def comfyui_generate_image(
else random.randint(0, 18446744073709551614)
)
for node_id in node.node_ids:
workflow[node.node_id]["inputs"]["seed"] = seed
workflow[node.node_id]["inputs"][node.key] = seed
else:
for node_id in node.node_ids:
workflow[node_id]["inputs"][node.key] = node.value