|
@@ -29,7 +29,7 @@ func CloudBrainAiSafetyCreateTest(ctx *context.Context) { |
|
|
jsonMap, err := getJsonContent("http://192.168.207.34:8065/Test_zap1234/openi_aisafety/raw/branch/master/result/0301.json") |
|
|
jsonMap, err := getJsonContent("http://192.168.207.34:8065/Test_zap1234/openi_aisafety/raw/branch/master/result/0301.json") |
|
|
if err == nil { |
|
|
if err == nil { |
|
|
aisafety.GetAlgorithmList() |
|
|
aisafety.GetAlgorithmList() |
|
|
aisafety.CreateSafetyTask(id, jsonMap) |
|
|
|
|
|
|
|
|
aisafety.CreateSafetyTask(id, "test", jsonMap) |
|
|
time.Sleep(time.Duration(2) * time.Second) |
|
|
time.Sleep(time.Duration(2) * time.Second) |
|
|
aisafety.GetTaskStatus(id) |
|
|
aisafety.GetTaskStatus(id) |
|
|
} |
|
|
} |
|
|