Accept workflows from the command line

This commit is contained in:
Benjamin Berman
2025-05-07 14:53:39 -07:00
parent da2cbf7c91
commit b6d3f1fb08
35 changed files with 459 additions and 319 deletions
@@ -136,8 +136,8 @@ async def main():
# configuration.cwd = os.path.dirname(__file__)
configuration = Configuration()
from comfy.client.embedded_comfy_client import EmbeddedComfyClient
async with EmbeddedComfyClient(configuration=configuration) as client:
from comfy.client.embedded_comfy_client import Comfy
async with Comfy(configuration=configuration) as client:
# This will run your prompt
outputs = await client.queue_prompt(prompt)