From 029d41a32786330293fe3e40480bb1678b7d72eb Mon Sep 17 00:00:00 2001 From: yp Date: Fri, 12 Sep 2025 07:30:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E7=BD=B2=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext/video_agent_deploy.py | 8 ++++---- utils/__init__.py | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 utils/__init__.py diff --git a/ext/video_agent_deploy.py b/ext/video_agent_deploy.py index 324d9b1..2e506ac 100644 --- a/ext/video_agent_deploy.py +++ b/ext/video_agent_deploy.py @@ -37,7 +37,7 @@ image = ( .run_commands("rm -rf /root/comfy/ComfyUI/input&&ln -s /models/input /root/comfy/ComfyUI/input") .run_commands("rm -rf /root/comfy/ComfyUI/output&&ln -s /models/output /root/comfy/ComfyUI/output") ) -app = modal.App(image=image, name='cf-video-api') +app = modal.App(image=image, name='comfyui-video-agent') custom_secret = modal.Secret.from_name("comfyui-custom-secret", environment_name="dev") vol = modal.Volume.from_name("comfy_model", environment_name="dev", create_if_missing=True) @@ -55,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, label='image-video-agent-1') +@modal.web_server(8000, startup_timeout=600, label='image-video-agent-1') def ui_1(): - process = subprocess.Popen("comfy launch -- --cpu --listen 0.0.0.0 --port 8001", shell=True) + process = subprocess.Popen("comfy launch -- --cpu --listen 0.0.0.0 --port 8000", shell=True) @app.function( @@ -73,6 +73,6 @@ def ui_1(): @modal.concurrent( max_inputs=10 ) -@modal.web_server(8000, startup_timeout=120, label='image-video-agent-2') +@modal.web_server(8000, startup_timeout=600, label='image-video-agent-2') def ui_2(): subprocess.Popen("comfy launch -- --cpu --listen 0.0.0.0 --port 8000", shell=True) diff --git a/utils/__init__.py b/utils/__init__.py new file mode 100644 index 0000000..b633015 --- /dev/null +++ b/utils/__init__.py @@ -0,0 +1,6 @@ +# -*- coding:utf-8 -*- +""" +File __init__.py +Author silence +Date 2025/9/8 10:08 +"""