Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 4 years ago
parent
commit
3dcd7c03c1
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      routers/routes/routes.go
  2. +1
    -1
      templates/repo/modelmanage/convertIndex.tmpl

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

@@ -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)


+ 1
- 1
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -115,7 +115,7 @@

<form id="downloadForm-{{.ID}}" action="{{$.RepoLink}}/modelmanage/download_model_convert/{{.ID}}" method="post">
{{$.CsrfTokenHtml}}
<a id="ai-delete-{{.ID}}" class='ui basic ai_stop {{if eq .Status "SUCCEEDED"}}blue {{else}}disabled {{end}}button' style="border-radius: .28571429rem;">
<a id="ai-download-{{.ID}}" class='ui basic ai_stop {{if eq .Status "SUCCEEDED"}}blue {{else}}disabled {{end}}button' style="border-radius: .28571429rem;">
下载
</a>
</form>


Loading…
Cancel
Save