Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/3437/head
zouap 2 years ago
parent
commit
0b63c015ee
2 changed files with 2 additions and 3 deletions
  1. +1
    -2
      routers/repo/cloudbrain.go
  2. +1
    -1
      routers/routes/routes.go

+ 1
- 2
routers/repo/cloudbrain.go View File

@@ -2771,8 +2771,7 @@ func DownloadGPUInferenceResultFile(ctx *context.Context) {
return
}
parentDir := ctx.Query("parentDir")
jobName := ctx.Query("jobName")
filePath := "jobs/" + jobName + "/result/" + parentDir
filePath := "jobs/" + task.JobName + "/result/" + parentDir
log.Info("prefix=" + filePath)
allFile, err := storage.GetAllObjectByBucketAndPrefixMinio(setting.Attachment.Minio.Bucket, filePath)
if err == nil {


+ 1
- 1
routers/routes/routes.go View File

@@ -1352,7 +1352,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Group("/:jobid", func() {
m.Get("", reqRepoCloudBrainReader, repo.InferenceJobShow)
m.Get("/result_download", cloudbrain.AdminOrJobCreaterRightForTrain, repo.ResultDownload)
m.Get("/downloadall", repo.DownloadMultiResultFile)
m.Get("/downloadall", cloudbrain.AdminOrJobCreaterRightForTrain, repo.DownloadMultiResultFile)
})
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, context.PointAccount(), repo.InferenceJobNew)
m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, bindIgnErr(auth.CreateModelArtsInferenceJobForm{}), repo.InferenceJobCreate)


Loading…
Cancel
Save