diff --git a/publish.yaml b/publish.yaml index 1efd601..01afe7b 100644 --- a/publish.yaml +++ b/publish.yaml @@ -11,7 +11,7 @@ Type: Application Name: start-modelscope-v3 Provider: - 阿里云 -Version: 0.0.4 +Version: 0.0.5 Description: ModelScope应用(fc3.0) HomePage: https://github.com/devsapp/start-modelscope-v3 Tags: diff --git a/src/s.yaml b/src/s.yaml index 1aac8df..7410042 100644 --- a/src/s.yaml +++ b/src/s.yaml @@ -59,7 +59,7 @@ resources: environmentVariables: MODEL_ID: ${vars.modelID} MODEL_VERSION: ${vars.modelRevision} - MODELSCOPE_CACHE: /mnt/${resources.model_cache.output.functionName} + MODELSCOPE_CACHE: ${resources.model_cache.output.nasConfig.mountPoints.0.mountDir} MODELSCOPE_TOKEN: ${vars.modelAccessToken} MODELSCOPE_DOMAIN: ${vars.modelCache} @@ -85,7 +85,7 @@ resources: image: registry.${vars.region}.aliyuncs.com/modelscope-repo/modelscope:${vars.version} port: 9000 environmentVariables: - MODELSCOPE_CACHE: /mnt/${resources.model_cache.output.functionName} + MODELSCOPE_CACHE: ${resources.model_cache.output.nasConfig.mountPoints.0.mountDir} triggers: - triggerName: httpTrigger triggerType: http @@ -125,7 +125,7 @@ resources: environmentVariables: MODEL_ID: ${vars.modelID} MODEL_VERSION: ${vars.modelRevision} - MODELSCOPE_CACHE: /mnt/${resources.model_cache.output.functionName} + MODELSCOPE_CACHE: ${resources.model_cache.output.nasConfig.mountPoints.0.mountDir} MODELSCOPE_TOKEN: ${vars.modelAccessToken} TASK: ${vars.modelTask} triggers: