Browse Source

提交代码。

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

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

@@ -24,15 +24,16 @@ func CloudBrainAiSafetyCreateTest(ctx *context.Context) {
uuid := uuid.NewV4()
id := uuid.String()
seriaNoParas := ctx.Query("serialNo")
fileName := ctx.Query("fileName")
//if jobType == string(models.JobTypeBenchmark) {
jsonStr, err := getJsonContent("http://192.168.207.34:8065/Test_zap1234/openi_aisafety/raw/branch/master/result/0302.json")
jsonStr, err := getJsonContent("http://192.168.207.34:8065/Test_zap1234/openi_aisafety/raw/branch/master/result/" + fileName)
if err == nil {
req := aisafety.TaskReq{
UnionId: id,
EvalName: "test1",
EvalContent: "test1",
TLPath: "test1",
Indicators: []string{"ACC,CAV"},
Indicators: []string{"ACC,ASS"},
CDName: "jzl_adv_data",
BDName: "jzl_cln_data",
}


Loading…
Cancel
Save