|
|
|
@@ -470,6 +470,7 @@ func QueryTrainModelList(ctx *context.Context) { |
|
|
|
log.Info("bucket=" + setting.Bucket + " objectkey=" + objectkey) |
|
|
|
if err != nil { |
|
|
|
log.Info("get TypeCloudBrainTwo TrainJobListModel failed:", err) |
|
|
|
} else { |
|
|
|
ctx.JSON(200, modelDbResult) |
|
|
|
return |
|
|
|
} |
|
|
|
@@ -479,6 +480,7 @@ func QueryTrainModelList(ctx *context.Context) { |
|
|
|
modelDbResult, err := storage.GetAllObjectByBucketAndPrefixMinio(bucketName, modelSrcPrefix) |
|
|
|
if err != nil { |
|
|
|
log.Info("get TypeCloudBrainOne TrainJobListModel failed:", err) |
|
|
|
} else { |
|
|
|
ctx.JSON(200, modelDbResult) |
|
|
|
return |
|
|
|
} |
|
|
|
|