修改提示
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def en2zh(text):
|
|
41 |
pres.append(pre)
|
42 |
print(name,pre)
|
43 |
return '\n'.join(pres)
|
44 |
-
inputs=gr.TextArea(lines=10,label='
|
45 |
outputs=gr.TextArea(lines=10,label='参考转译结果')
|
46 |
interface = gr.Interface(fn=en2zh, inputs=inputs, outputs=outputs)
|
47 |
interface.launch()
|
|
|
41 |
pres.append(pre)
|
42 |
print(name,pre)
|
43 |
return '\n'.join(pres)
|
44 |
+
inputs=gr.TextArea(lines=10,label='请输入英文字段名(若输入多个,请用换行分隔)',placeholder='以换行\\n为分隔符')
|
45 |
outputs=gr.TextArea(lines=10,label='参考转译结果')
|
46 |
interface = gr.Interface(fn=en2zh, inputs=inputs, outputs=outputs)
|
47 |
interface.launch()
|