修改通用文件上传节点

This commit is contained in:
杨平 2025-09-12 19:16:29 +08:00
parent 64cb10c369
commit bf0854a848
2 changed files with 2 additions and 2 deletions

View File

@ -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/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") .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") 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) vol = modal.Volume.from_name("comfy_model", environment_name="dev", create_if_missing=True)

View File

@ -91,7 +91,7 @@ def upload_file_gs(file_path: str):
} }
response = requests.post( response = requests.post(
'https://https://modal-prod.bowong.cc/api/file/upload/s3', 'https://modal-prod.bowong.cc/api/file/upload/s3',
headers=headers, headers=headers,
files=files, files=files,
) )