Browse Source

提交代码。

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

+ 1
- 1
routers/repo/ai_model_manage.go View File

@@ -465,7 +465,7 @@ func QueryTrainModelList(ctx *context.Context) {
taskType := ctx.QueryInt("type")
VersionName := ctx.Query("VersionName")
if taskType == models.TypeCloudBrainTwo {
objectkey := strings.TrimPrefix(path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, VersionName, "/"), "/")
objectkey := path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, VersionName, "/")
modelDbResult, err := storage.GetAllObjectByBucketAndPrefix(setting.Bucket, objectkey)
log.Info("bucket=" + setting.Bucket + " objectkey=" + objectkey)
if err != nil {


Loading…
Cancel
Save