|
|
|
@@ -1165,7 +1165,7 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
|
|
|
|
m.Get("/downloadall", repo.DownloadInferenceResultFile) |
|
|
|
}) |
|
|
|
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.InferenceCloudBrainJobNew) |
|
|
|
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, context.PointAccount(), repo.InferenceCloudBrainJobNew) |
|
|
|
m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, bindIgnErr(auth.CreateCloudBrainInferencForm{}), repo.CloudBrainInferenceJobCreate) |
|
|
|
}) |
|
|
|
}, context.RepoRef()) |
|
|
|
@@ -1178,11 +1178,11 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Get("/model_download", cloudbrain.AdminOrJobCreaterRightForTrain, repo.ModelDownload) |
|
|
|
}) |
|
|
|
m.Group("/gpu", func() { |
|
|
|
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.GrampusTrainJobGPUNew) |
|
|
|
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, context.PointAccount(), repo.GrampusTrainJobGPUNew) |
|
|
|
m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, bindIgnErr(auth.CreateGrampusTrainJobForm{}), repo.GrampusTrainJobGpuCreate) |
|
|
|
}) |
|
|
|
m.Group("/npu", func() { |
|
|
|
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.GrampusTrainJobNPUNew) |
|
|
|
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, context.PointAccount(), repo.GrampusTrainJobNPUNew) |
|
|
|
m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, bindIgnErr(auth.CreateGrampusTrainJobForm{}), repo.GrampusTrainJobNpuCreate) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|