Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsonnie committed Mar 7, 2024
1 parent 0347ff9 commit cc71c4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit cc71c4e

Please sign in to comment.