Browse Source

Merge pull request 'fix-3133' (#3139) from fix-3133 into V20221102

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/3139
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
tags/v1.22.11.1^2
ychao_1983 3 years ago
parent
commit
44d4f6ec26
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      routers/api/v1/repo/modelarts.go

+ 3
- 1
routers/api/v1/repo/modelarts.go View File

@@ -27,6 +27,7 @@ import (
"code.gitea.io/gitea/modules/storage"
"code.gitea.io/gitea/modules/timeutil"
routerRepo "code.gitea.io/gitea/routers/repo"
cloudbrainService "code.gitea.io/gitea/services/cloudbrain"
)

func GetModelArtsNotebook2(ctx *context.APIContext) {
@@ -172,7 +173,8 @@ func GetModelArtsTrainJobVersion(ctx *context.APIContext) {
if len(result.JobInfo.Tasks) > 0 {
if len(result.JobInfo.Tasks[0].CenterID) > 0 && len(result.JobInfo.Tasks[0].CenterName) > 0 {
job.AiCenter = result.JobInfo.Tasks[0].CenterID[0] + "+" + result.JobInfo.Tasks[0].CenterName[0]
aiCenterName = result.JobInfo.Tasks[0].CenterName[0]
// aiCenterName = result.JobInfo.Tasks[0].CenterName[0]
aiCenterName = cloudbrainService.GetAiCenterShow(job.AiCenter, ctx.Context)
}
}
} else {


Loading…
Cancel
Save