merge master

This commit is contained in:
saltacc
2024-01-19 12:54:07 -08:00
parent e3bef43d91
commit c0befe3e45
6 changed files with 111 additions and 0 deletions
@@ -0,0 +1,21 @@
import asyncio
import os
import sys
comfy_path = os.path.dirname(os.path.abspath(__file__))
comfy_path = os.path.join(comfy_path, '..', 'ComfyUI')
# change to ComfyUI directory
os.chdir(comfy_path)
# add ComfyUI to path
sys.path.append(comfy_path)
from server import PromptServer
from execution import PromptQueue
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
server = PromptServer(loop)
q = PromptQueue(server)