From eeb399623117e371fad588d954d24bfaa8135a68 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 4 Jul 2022 08:59:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=A8=A1=E5=9E=8B=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=99=BA=E7=AE=97=E7=BD=91=E7=BB=9C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/ai_model_manage.go | 1 + templates/repo/modelmanage/index.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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{