修改图片生成节点

This commit is contained in:
yp
2025-09-11 23:22:50 +08:00
parent 0eb2985724
commit 7a8dcaf91b
2 changed files with 110 additions and 62 deletions

View File

@@ -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)