Browse Source

npu调试模型地址改为https格式

pull/3418/head
ychao_1983 2 years ago
parent
commit
2f342a45ea
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      routers/repo/modelarts.go

+ 4
- 1
routers/repo/modelarts.go View File

@@ -346,9 +346,12 @@ func NotebookShow(ctx *context.Context) {
}

func GetModelDownload(task *models.Cloudbrain) models.ModelDownload {
index := strings.Index(task.PreTrainModelUrl, "/")
key := task.PreTrainModelUrl[index+1:] + task.CkptName
url, _ := storage.GetObsCreateSignedUrlByBucketAndKey(setting.Bucket, key)
modelDownload := models.ModelDownload{
Name: task.CkptName,
DownloadLink: "s3://" + task.PreTrainModelUrl + task.CkptName,
DownloadLink: url,
IsDelete: false,
}



Loading…
Cancel
Save