From 015705a285af7862a1d4705bb51edcbf1d87aa90 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 12 Jan 2022 11:31:50 +0800 Subject: [PATCH] fix issue --- options/locale/locale_en-US.ini | 4 ++- options/locale/locale_zh-CN.ini | 4 ++- templates/repo/modelarts/inferencejob/show.tmpl | 33 ++++++++++++++----------- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index a165fb6a0..0dbae84cc 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -630,7 +630,7 @@ oauth2_application_create_description = OAuth2 applications gives your third-par oauth2_application_remove_description = Removing an OAuth2 application will prevent it to access authorized user accounts on this instance. Continue? authorized_oauth2_applications = Authorized OAuth2 Applications -authorized_oauth2_applications_description = You've granted access to your personal openi account to these third party applications. Please revoke access for applications no longer needed. +authorized_oauth2_applications_description = You have granted access to your personal openi account to these third party applications. Please revoke access for applications no longer needed. revoke_key = Revoke revoke_oauth2_grant = Revoke Access revoke_oauth2_grant_description = Revoking access for this third party application will prevent this application from accessing your data. Are you sure? @@ -883,6 +883,8 @@ modelarts.parent_version=Parent Version modelarts.run_version=Run Version modelarts.train_job.compute_node=Compute Node modelarts.create_model = Create Model +modelarts.model_label=Model Label +modelarts.infer_dataset = Inference Dataset modelarts.train_job.basic_info=Basic Info diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 8b538dc9e..1fbcc0a84 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -889,6 +889,8 @@ modelarts.current_version=当前版本 modelarts.parent_version=父版本 modelarts.run_version=运行版本 modelarts.create_model=创建模型 +modelarts.model_label=模型标签 +modelarts.infer_dataset = 推理数据集 @@ -945,7 +947,7 @@ modelarts.infer_job_model_file = 模型文件 modelarts.infer_job = 推理任务 modelarts.infer_job.model_version = 模型/版本 modelarts.infer_job.select_model = 选择模型 -modelarts.infer_job.boot_file_helper=启动文件是您程序执行的入口文件,必须是以.py结尾的文件。比如inferenece.py、main.py、example/nferenec.py、case/main.py。 +modelarts.infer_job.boot_file_helper=启动文件是您程序执行的入口文件,必须是以.py结尾的文件。比如inferenece.py、main.py、example/inference.py、case/main.py。 model.manage.import_new_model=导入新模型 model.manage.create_error=相同的名称和版本的模型已经存在。 diff --git a/templates/repo/modelarts/inferencejob/show.tmpl b/templates/repo/modelarts/inferencejob/show.tmpl index fd53e50f4..95126c01e 100644 --- a/templates/repo/modelarts/inferencejob/show.tmpl +++ b/templates/repo/modelarts/inferencejob/show.tmpl @@ -248,22 +248,16 @@ td, th { + - {{$.i18n.Tr "repo.migrate_items_labels"}} + {{$.i18n.Tr "repo.modelarts.train_job.AI_driver"}} - -
- - {{if .LabelName}} - {{range $.labelName}} - {{.}} - {{end}} - {{else}} - -- - {{end}} +
+ {{.EngineName}}
+ @@ -332,14 +326,23 @@ td, th { - {{$.i18n.Tr "repo.modelarts.train_job.AI_driver"}} + {{$.i18n.Tr "repo.modelarts.model_label"}} + -
- {{.EngineName}} +
+ + {{if .LabelName}} + {{range $.labelName}} + {{.}} + {{end}} + {{else}} + -- + {{end}}
+ {{$.i18n.Tr "repo.modelarts.code_version"}} @@ -364,7 +367,7 @@ td, th { - {{$.i18n.Tr "repo.modelarts.train_job.train_dataset"}} + {{$.i18n.Tr "repo.modelarts.infer_dataset "}}