diff --git a/routers/repo/ai_model_manage.go b/routers/repo/ai_model_manage.go index 5170c889d..ad06dc031 100644 --- a/routers/repo/ai_model_manage.go +++ b/routers/repo/ai_model_manage.go @@ -161,7 +161,7 @@ func downloadModelFromCloudBrainTwo(modelUUID string, jobName string, parentDir if len(modelDbResult) == 0 { return "", 0, errors.New("cannot create model, as model is empty.") } - prefix := strings.TrimPrefix(path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, parentDir), "/") + prefix := strings.TrimPrefix(path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, parentDir), "/") + "/" for _, modelFile := range modelDbResult { destKeyNamePrefix := "aimodels/" + models.AttachmentRelativePath(modelUUID) + "/" log.Info("copy file, bucket=" + setting.Bucket + ", src keyname=" + prefix + modelFile.FileName)