From f434fc6c878ffa75436751dc0cbb8d96dca620a6 Mon Sep 17 00:00:00 2001 From: lewis <747342561@qq.com> Date: Tue, 31 May 2022 20:11:18 +0800 Subject: [PATCH] create view --- options/locale/locale_en-US.ini | 1 + options/locale/locale_zh-CN.ini | 1 + routers/routes/routes.go | 2 +- templates/repo/grampus/trainjob/npu/new.tmpl | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 3166dafb7..2772d6ba8 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1171,6 +1171,7 @@ model.manage.model_manage = ModelManage model.manage.model_accuracy = Model Accuracy grampus.train_job.ai_center = AI Center +grampus.dataset_path_rule = The code is storaged in /tmp/code;the dataset is storaged in /tmp/dataset;and please put your model into /tmp/output, then you can download it online。 template.items = Template Items template.git_content = Git Content (Default Branch) diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index c542916fc..ae6c1b276 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -1181,6 +1181,7 @@ model.manage.model_manage = 模型管理 model.manage.model_accuracy = 模型精度 grampus.train_job.ai_center=ai计算中心 +grampus.dataset_path_rule = 训练脚本存储在/tmp/code中,数据集存储在/tmp/dataset中,训练输出请存储在/tmp/output中以供后续下载。 template.items=模板选项 template.git_content=Git数据(默认分支) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index ab9f12205..c3a18d457 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -1093,7 +1093,7 @@ func RegisterRoutes(m *macaron.Macaron) { }) m.Group("/gpu", func() { m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.GrampusTrainJobGPUNew) - //m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, bindIgnErr(auth.CreateCloudBrainForm{}), repo.GrampusTrainJobCreate) + m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, bindIgnErr(auth.CreateCloudBrainForm{}), repo.GrampusTrainJobCreate) }) m.Group("/npu", func() { m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.GrampusTrainJobNPUNew) diff --git a/templates/repo/grampus/trainjob/npu/new.tmpl b/templates/repo/grampus/trainjob/npu/new.tmpl index 50689e1d6..91ad7b8be 100755 --- a/templates/repo/grampus/trainjob/npu/new.tmpl +++ b/templates/repo/grampus/trainjob/npu/new.tmpl @@ -174,7 +174,7 @@ {{template "custom/select_dataset_train" .}} - {{.i18n.Tr "cloudbrain.dataset_path_rule"}} + {{.i18n.Tr "repo.grampus.dataset_path_rule"}}