add waas服务器支持多comfyui执行器
This commit is contained in:
@@ -12,6 +12,7 @@ fastapi_image = (
|
||||
|
||||
app = modal.App(image=fastapi_image, name="waas-demo")
|
||||
vol = modal.Volume.from_name("comfy_model", environment_name="dev", create_if_missing=True)
|
||||
secret = modal.Secret.from_name("aws-s3-secret", environment_name="dev")
|
||||
|
||||
with fastapi_image.imports():
|
||||
|
||||
@@ -20,7 +21,12 @@ with fastapi_image.imports():
|
||||
memory=(128, 4096),
|
||||
scaledown_window=1200,
|
||||
volumes={
|
||||
"/db": vol
|
||||
"/db": vol,
|
||||
"/waas": modal.CloudBucketMount(
|
||||
bucket_name="modal-media-cache",
|
||||
secret=secret,
|
||||
key_prefix="waas/"
|
||||
),
|
||||
}
|
||||
)
|
||||
@modal.concurrent(max_inputs=100)
|
||||
|
||||
Reference in New Issue
Block a user