修改图片生成节点

This commit is contained in:
yp
2025-09-07 19:00:45 +08:00
parent e35664c204
commit 0eb2985724
3 changed files with 7 additions and 12 deletions

View File

@@ -58,7 +58,8 @@ vol = modal.Volume.from_name("comfy_model", environment_name="dev", create_if_mi
)
@modal.web_server(8000, startup_timeout=120)
def ui_1():
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 8000", shell=True)
process.wait()
@app.function(