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