diff --git a/routers/repo/ai_model_manage.go b/routers/repo/ai_model_manage.go index 33e086f7f..4c2e512fd 100644 --- a/routers/repo/ai_model_manage.go +++ b/routers/repo/ai_model_manage.go @@ -501,6 +501,7 @@ func QueryTrainModelList(ctx *context.Context) { VersionName := ctx.Query("VersionName") if taskType == models.TypeCloudBrainTwo { objectkey := path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, VersionName) + "/" + log.Info("object key=" + objectkey) modelDbResult, err := storage.GetAllObjectByBucketAndPrefix(setting.Bucket, objectkey) log.Info("bucket=" + setting.Bucket + " objectkey=" + objectkey) if err != nil { diff --git a/templates/repo/modelmanage/index.tmpl b/templates/repo/modelmanage/index.tmpl index 73211b091..68d7cb87d 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -441,7 +441,7 @@ console.log("trainJob is null"); }else{ let type = trainJob.Type; - if(type == 3){ + if(type == 2){ if(trainJob.ComputeResource=="NPU"){ type=1; }else{