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"