changxin commited on
Commit
a8c0847
·
1 Parent(s): 27ccb06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ 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=True), 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():
 
26
  with gr.Column():
27
  text_input=gr.Textbox(placeholder='请输入测试字符串',label="请输入需要MD5加密的测试内容")
28
  text_output=gr.Textbox(label="输出",visible=False)
29
+ text_input.change(fn=lambda visible: gr.update(visible=True), 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():