Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.10.1^2
zouap 3 years ago
parent
commit
1da4b3c52e
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      routers/repo/aisafety.go

+ 6
- 3
routers/repo/aisafety.go View File

@@ -454,12 +454,15 @@ func sendGPUInferenceResultToTest(job *models.Cloudbrain) {
datasetname := job.DatasetName
datasetnames := strings.Split(datasetname, ";")
indicator := job.LabelName

EvalContent := "test1"
if job.Description != "" {
EvalContent = job.Description
}
req := aisafety.TaskReq{
UnionId: job.JobID,
EvalName: job.DisplayJobName,
EvalContent: job.Description,
TLPath: "test",
EvalContent: EvalContent,
TLPath: "test1",
Indicators: strings.Split(indicator, ";"),
CDName: datasetnames[1],
BDName: datasetnames[0],


Loading…
Cancel
Save