Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
41596df85c
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      routers/repo/cloudbrain.go
  2. +2
    -2
      routers/repo/modelarts.go

+ 2
- 2
routers/repo/cloudbrain.go View File

@@ -353,8 +353,8 @@ func CloudBrainInferenceJobCreate(ctx *context.Context, form auth.CreateCloudBra
branchName := form.BranchName
repo := ctx.Repo.Repository

ckptUrl := form.TrainUrl + form.CkptName
ckptUrl := setting.Attachment.Minio.RealPath + setting.Attachment.Minio.Bucket + "/" + form.TrainUrl + form.CkptName
log.Info("ckpt url:" + ckptUrl)
tpl := tplCloudBrainInferenceJobNew
command, err := getInferenceJobCommand(form)
if err != nil {


+ 2
- 2
routers/repo/modelarts.go View File

@@ -1881,8 +1881,8 @@ func InferenceJobCreate(ctx *context.Context, form auth.CreateModelArtsInference
modelName := form.ModelName
modelVersion := form.ModelVersion
ckptName := form.CkptName
ckptUrl := form.TrainUrl + form.CkptName
ckptUrl := "/" + setting.Bucket + "/" + form.TrainUrl + form.CkptName
log.Info("ckpt url:" + ckptUrl)

count, err := models.GetCloudbrainInferenceJobCountByUserID(ctx.User.ID)
if err != nil {


Loading…
Cancel
Save