diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 11faa5f83..9c6f029bb 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -1092,10 +1092,10 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/show_model_child_api", repo.ShowOneVersionOtherModel) m.Get("/query_train_job", reqRepoCloudBrainReader, repo.QueryTrainJobList) m.Get("/query_train_job_version", reqRepoCloudBrainReader, repo.QueryTrainJobVersionList) - m.Get("/query_model_for_predict", reqRepoCloudBrainReader, repo.QueryModelListForPredict) - m.Get("/query_modelfile_for_predict", reqRepoCloudBrainReader, repo.QueryModelFileForPredict) - m.Get("/query_onelevel_modelfile", reqRepoCloudBrainReader, repo.QueryOneLevelModelFile) - m.Get("/download_model_convert", reqRepoCloudBrainReader, repo.CloudBrainDownloadModel) + m.Get("/query_model_for_predict", reqRepoModelManageReader, repo.QueryModelListForPredict) + m.Get("/query_modelfile_for_predict", reqRepoModelManageReader, repo.QueryModelFileForPredict) + m.Get("/query_onelevel_modelfile", reqRepoModelManageReader, repo.QueryOneLevelModelFile) + m.Get("/download_model_convert", reqRepoModelManageReader, repo.CloudBrainDownloadModel) m.Group("/:ID", func() { m.Get("", repo.ShowSingleModel) m.Get("/downloadsingle", repo.DownloadSingleModelFile) diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index 8e811dcd8..bf6a8966d 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -115,7 +115,7 @@