mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-21 23:41:28 +08:00
Accept workflows from the command line
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user