From 340bb6a26ae02edc207181163116e1ac855afd8d Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 10 Oct 2022 11:53:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/aisafety.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routers/repo/aisafety.go b/routers/repo/aisafety.go index 3db53e5ca..944fc2625 100644 --- a/routers/repo/aisafety.go +++ b/routers/repo/aisafety.go @@ -347,9 +347,11 @@ func sendNPUInferenceResultToTest(job *models.Cloudbrain) { EvalContent: EvalContent, TLPath: "test", Indicators: strings.Split(indicator, ";"), - CDName: datasetnames[1][0 : len(datasetnames[1])-4], - BDName: datasetnames[0][0 : len(datasetnames[1])-4], + CDName: strings.Split(datasetnames[1], ",")[0], + BDName: strings.Split(datasetnames[1], ",")[0], } + log.Info("CDName=" + req.CDName) + log.Info("BDName=" + req.BDName) jsonContent := "" VersionOutputPath := modelarts.GetOutputPathByCount(modelarts.TotalVersionCount) resultPath := modelarts.JobPath + job.JobName + modelarts.ResultPath + VersionOutputPath + "/result.json"