|
|
@@ -383,7 +383,7 @@ func CloudbrainForModelConvertGetLog(ctx *context.Context) { |
|
|
|
ctx.JSON(http.StatusOK, result) |
|
|
|
} |
|
|
|
|
|
|
|
func CloudbrainForModelSafetyGetLog(ctx *context.Context) { |
|
|
|
func ModelSafetyGetLog(ctx *context.APIContext) { |
|
|
|
ID := ctx.Params(":id") |
|
|
|
job, err := models.GetCloudbrainByID(ID) |
|
|
|
if err != nil { |
|
|
@@ -393,13 +393,17 @@ func CloudbrainForModelSafetyGetLog(ctx *context.Context) { |
|
|
|
} |
|
|
|
if job.JobType == string(models.JobTypeModelSafety) { |
|
|
|
if job.Type == models.TypeCloudBrainOne { |
|
|
|
|
|
|
|
CloudbrainGetLog(ctx) |
|
|
|
} else if job.Type == models.TypeCloudBrainTwo { |
|
|
|
|
|
|
|
TrainJobForModelConvertGetLog(ctx) |
|
|
|
} |
|
|
|
} |
|
|
|
result := "" |
|
|
|
ctx.JSON(http.StatusOK, result) |
|
|
|
//result := "" |
|
|
|
//ctx.JSON(http.StatusOK, result) |
|
|
|
} |
|
|
|
|
|
|
|
func ModelSafetyDownloadLogFile(ctx *context.Context) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
func CloudbrainDownloadLogFile(ctx *context.Context) { |
|
|
@@ -443,7 +447,7 @@ func CloudbrainDownloadLogFile(ctx *context.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func CloudbrainGetLog(ctx *context.Context) { |
|
|
|
func CloudbrainGetLog(ctx *context.APIContext) { |
|
|
|
ID := ctx.Params(":id") |
|
|
|
job, err := models.GetCloudbrainByID(ID) |
|
|
|
if err != nil { |
|
|
|