Skip to content

Commit 855217c

Browse files
fix(webui): change labels
1 parent 22f4693 commit 855217c

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

webui/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def sum_tokens(client):
371371
value="",
372372
info="https://cloud.siliconflow.cn/account/ak")
373373
with gr.Column(scale=1):
374-
test_connection_btn = gr.Button("Test Connection")
374+
test_connection_btn = gr.Button(_("Test Connection"))
375375

376376
with gr.Blocks():
377377
with gr.Row(equal_height=True):
@@ -399,7 +399,7 @@ def sum_tokens(client):
399399
with gr.Row(equal_height=True):
400400
with gr.Column(scale=1):
401401
upload_file = gr.File(
402-
label="Upload File",
402+
label=_("Upload File"),
403403
file_count="single",
404404
file_types=[".txt", ".json", ".jsonl"],
405405
interactive=True,
@@ -411,7 +411,7 @@ def sum_tokens(client):
411411
[os.path.join(examples_dir, "chunked_demo.json")],
412412
],
413413
inputs=upload_file,
414-
label="Example Files",
414+
label=_("Example Files"),
415415
examples_per_page=3)
416416
with gr.Column(scale=1):
417417
output = gr.File(
@@ -428,7 +428,7 @@ def sum_tokens(client):
428428
visible=False,
429429
wrap=True)
430430

431-
submit_btn = gr.Button("Run GraphGen")
431+
submit_btn = gr.Button(_("Run GraphGen"))
432432

433433
# Test Connection
434434
test_connection_btn.click(

webui/translation.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
{
22
"en": {
33
"Title": "✨Easy-to-use LLM Training Data Generation Framework✨",
4-
"Intro": "is a framework for synthetic data generation guided by knowledge graphs, designed to tackle challenges for knowledge-intensive QA generation. \n\nBy uploading your text chunks (such as knowledge in agriculture, healthcare, or marine science) and filling in the LLM API key, you can generate the training data required by **LLaMA-Factory** and **xtuner** online. We will automatically delete user information after completion.",
4+
"Intro": "is a framework for synthetic data generation guided by knowledge graphs, designed to tackle challenges for knowledge-intensive QA generation. \n\nBy uploading your text chunks (such as knowledge in agriculture, healthcare, or marine science) and filling in the LLM API key, you can generate the training data required by **[LLaMA-Factory](https://github.com/hiyouga/LLaMA-Factory)** and **[xtuner](https://github.com/InternLM/xtuner)** online. We will automatically delete user information after completion.",
55
"Use Trainee Model": "Use Trainee Model to identify knowledge blind spots, please keep disable for SiliconCloud",
66
"Base URL Info": "Base URL for the API, use SiliconFlow as default",
77
"Synthesizer Model Info": "Model for constructing KGs and generating QAs",
88
"Trainee Model Info": "Model for training",
99
"Model Config": "Model Configuration",
1010
"Generation Config": "Generation Config",
11-
"SiliconCloud Token": "SiliconCloud API Key"
11+
"SiliconCloud Token": "SiliconCloud API Key",
12+
"Test Connection": "Test Connection",
13+
"Run GraphGen": "Run GraphGen",
14+
"Upload File": "Upload File",
15+
"Example Files": "Example Files"
1216
},
1317
"zh": {
1418
"Title": "✨开箱即用的LLM训练数据生成框架✨",
15-
"Intro": "是一个基于知识图谱的合成数据生成框架,旨在解决知识密集型问答生成的挑战。\n\n 上传你的文本块(如农业、医疗、海洋知识),填写 LLM api key,即可在线生成 **LLaMA-Factory**、**xtuner** 所需训练数据。结束后我们将自动删除用户信息。",
19+
"Intro": "是一个基于知识图谱的合成数据生成框架,旨在解决知识密集型问答生成的挑战。\n\n 上传你的文本块(如农业、医疗、海洋知识),填写 LLM api key,即可在线生成 **[LLaMA-Factory](https://github.com/hiyouga/LLaMA-Factory)**、**[xtuner](https://github.com/InternLM/xtuner)** 所需训练数据。结束后我们将自动删除用户信息。",
1620
"Use Trainee Model": "使用Trainee Model来识别知识盲区,使用硅基流动时请保持禁用",
1721
"Base URL Info": "调用模型API的URL,默认使用硅基流动",
1822
"Synthesizer Model Info": "用于构建知识图谱和生成问答的模型",
1923
"Trainee Model Info": "用于训练的模型",
2024
"Model Config": "模型配置",
2125
"Generation Config": "生成配置",
22-
"SiliconCloud Token": "硅基流动 API Key"
26+
"SiliconCloud Token": "硅基流动 API Key",
27+
"Test Connection": "测试接口",
28+
"Run GraphGen": "运行GraphGen",
29+
"Upload File": "上传文件",
30+
"Example Files": "示例文件"
2331
}
2432
}

0 commit comments

Comments
 (0)