Spaces:
Running
Running
admin
commited on
Commit
·
b988f68
1
Parent(s):
c71b819
sync ms
Browse files- modules/cmd.py +2 -4
modules/cmd.py
CHANGED
@@ -6,7 +6,6 @@ import gradio as gr
|
|
6 |
|
7 |
EN_US = os.getenv("LANG") != "zh_CN.UTF-8"
|
8 |
ZH2EN = {
|
9 |
-
"输入命令": "Input command",
|
10 |
"状态栏": "Status",
|
11 |
"执行结果": "Command output",
|
12 |
"命令执行测试工具": "Command executor",
|
@@ -75,14 +74,13 @@ def cmd_inject():
|
|
75 |
return gr.Interface(
|
76 |
fn=inject.infer,
|
77 |
inputs=gr.Textbox(
|
78 |
-
label=_L("
|
79 |
value="dir" if os.name == "nt" else "ls /",
|
|
|
80 |
),
|
81 |
outputs=[
|
82 |
gr.Textbox(label=_L("状态栏"), show_copy_button=True),
|
83 |
gr.TextArea(label=_L("执行结果"), show_copy_button=True),
|
84 |
],
|
85 |
-
title=_L("命令执行测试工具"),
|
86 |
-
description=_L("输入一个命令, 点击查看其执行结果"),
|
87 |
flagging_mode="never",
|
88 |
)
|
|
|
6 |
|
7 |
EN_US = os.getenv("LANG") != "zh_CN.UTF-8"
|
8 |
ZH2EN = {
|
|
|
9 |
"状态栏": "Status",
|
10 |
"执行结果": "Command output",
|
11 |
"命令执行测试工具": "Command executor",
|
|
|
74 |
return gr.Interface(
|
75 |
fn=inject.infer,
|
76 |
inputs=gr.Textbox(
|
77 |
+
label=_L("命令执行测试工具"),
|
78 |
value="dir" if os.name == "nt" else "ls /",
|
79 |
+
placeholder=_L("输入一个命令, 点击查看其执行结果"),
|
80 |
),
|
81 |
outputs=[
|
82 |
gr.Textbox(label=_L("状态栏"), show_copy_button=True),
|
83 |
gr.TextArea(label=_L("执行结果"), show_copy_button=True),
|
84 |
],
|
|
|
|
|
85 |
flagging_mode="never",
|
86 |
)
|