Spaces:
Running
Running
admin
commited on
Commit
·
ff565eb
1
Parent(s):
b0b394a
sync ms
Browse files- modules/trans.py +3 -2
modules/trans.py
CHANGED
@@ -57,7 +57,7 @@ def translator():
|
|
57 |
fn=infer,
|
58 |
inputs=[
|
59 |
gr.TextArea(label=_L("输入文本区域"), placeholder=_L("在这里输入文本...")),
|
60 |
-
gr.
|
61 |
],
|
62 |
outputs=[
|
63 |
gr.Textbox(label=_L("状态栏"), show_copy_button=True),
|
@@ -65,7 +65,8 @@ def translator():
|
|
65 |
],
|
66 |
flagging_mode="never",
|
67 |
examples=[
|
68 |
-
["
|
|
|
69 |
["Lingocloud is the best translation service.", "auto2zh"],
|
70 |
],
|
71 |
cache_examples=False,
|
|
|
57 |
fn=infer,
|
58 |
inputs=[
|
59 |
gr.TextArea(label=_L("输入文本区域"), placeholder=_L("在这里输入文本...")),
|
60 |
+
gr.Textbox(label=_L("模式"), value="auto2en"),
|
61 |
],
|
62 |
outputs=[
|
63 |
gr.Textbox(label=_L("状态栏"), show_copy_button=True),
|
|
|
65 |
],
|
66 |
flagging_mode="never",
|
67 |
examples=[
|
68 |
+
["彩云小译是最好的翻译服务。", "auto2ja"],
|
69 |
+
["彩云小译は最高の翻訳サービスです", "auto2en"],
|
70 |
["Lingocloud is the best translation service.", "auto2zh"],
|
71 |
],
|
72 |
cache_examples=False,
|