Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +25,10 @@ demo=gr.Blocks()
|
|
| 25 |
with demo:
|
| 26 |
with gr.Column():
|
| 27 |
text_input=gr.Textbox(placeholder='请输入测试字符串',label="请输入需要MD5加密的测试内容")
|
|
|
|
|
|
|
| 28 |
bb_button=gr.Button("运行")
|
| 29 |
-
bb_button.click(fx, inputs=text_input, outputs=
|
| 30 |
with gr.Column():
|
| 31 |
gr.Markdown("# TTS文本字符串转语音合成训练")
|
| 32 |
TTS_input=gr.Textbox(label="输入文本",default="你好吗?我很好。")
|
|
|
|
| 25 |
with demo:
|
| 26 |
with gr.Column():
|
| 27 |
text_input=gr.Textbox(placeholder='请输入测试字符串',label="请输入需要MD5加密的测试内容")
|
| 28 |
+
text_output=gr.Textbox(label="输出",visible=False)
|
| 29 |
+
text_input.submit(fn=lambda visible: gr.update(visible=visible), inputs=text_input, outputs=text_output)
|
| 30 |
bb_button=gr.Button("运行")
|
| 31 |
+
bb_button.click(fx, inputs=text_input, outputs=text_output,api_name='md5')
|
| 32 |
with gr.Column():
|
| 33 |
gr.Markdown("# TTS文本字符串转语音合成训练")
|
| 34 |
TTS_input=gr.Textbox(label="输入文本",default="你好吗?我很好。")
|