修改图片生成节点
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import modal
|
||||
|
||||
image = (
|
||||
@@ -56,9 +55,9 @@ vol = modal.Volume.from_name("comfy_model", environment_name="dev", create_if_mi
|
||||
@modal.concurrent(
|
||||
max_inputs=10
|
||||
)
|
||||
@modal.web_server(8000, startup_timeout=120)
|
||||
@modal.web_server(8000, startup_timeout=120, label='image-video-agent-1')
|
||||
def ui_1():
|
||||
process = subprocess.Popen("comfy launch -- --cpu --listen 0.0.0.0 --port 8000", shell=True)
|
||||
process = subprocess.Popen("comfy launch -- --cpu --listen 0.0.0.0 --port 8001", shell=True)
|
||||
process.wait()
|
||||
|
||||
|
||||
@@ -75,6 +74,6 @@ def ui_1():
|
||||
@modal.concurrent(
|
||||
max_inputs=10
|
||||
)
|
||||
@modal.web_server(8000, startup_timeout=120)
|
||||
@modal.web_server(8000, startup_timeout=120, label='image-video-agent-2')
|
||||
def ui_2():
|
||||
subprocess.Popen("comfy launch -- --cpu --listen 0.0.0.0 --port 8000", shell=True)
|
||||
|
||||
Reference in New Issue
Block a user