|
|
|
@@ -97,7 +97,9 @@ func GetAiSafetyTask(ctx *context.Context) { |
|
|
|
job.BenchmarkTypeName = "Image Classification" |
|
|
|
job.CanModify = cloudbrain.CanModifyJob(ctx, job) |
|
|
|
job.CanDel = cloudbrain.CanDeleteJob(ctx, job) |
|
|
|
|
|
|
|
if job.Parameters == "{\"parameter\":[]}" { |
|
|
|
job.Parameters = "" |
|
|
|
} |
|
|
|
s, err := resource.GetCloudbrainSpec(job.ID) |
|
|
|
if err == nil { |
|
|
|
job.Spec = s |
|
|
|
|