Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
8d6d792457
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/repo/ai_model_manage.go

+ 2
- 0
routers/repo/ai_model_manage.go View File

@@ -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
}


Loading…
Cancel
Save