|
|
@@ -622,7 +622,7 @@ func ModelConvertDownloadModel(ctx *context.Context) { |
|
|
AllDownload := ctx.QueryBool("AllDownload") |
|
|
AllDownload := ctx.QueryBool("AllDownload") |
|
|
if AllDownload { |
|
|
if AllDownload { |
|
|
if job.IsGpuTrainTask() { |
|
|
if job.IsGpuTrainTask() { |
|
|
path := setting.CBCodePathPrefix + job.ID + "/model" |
|
|
|
|
|
|
|
|
path := setting.CBCodePathPrefix + job.ID + "/model/" |
|
|
allFile, err := storage.GetAllObjectByBucketAndPrefixMinio(setting.Attachment.Minio.Bucket, path) |
|
|
allFile, err := storage.GetAllObjectByBucketAndPrefixMinio(setting.Attachment.Minio.Bucket, path) |
|
|
if err == nil { |
|
|
if err == nil { |
|
|
returnFileName := job.Name + ".zip" |
|
|
returnFileName := job.Name + ".zip" |
|
|
|