ysharma HF staff commited on
Commit
a64b5fc
·
verified ·
1 Parent(s): 071c182

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ with gr.Blocks() as demo:
8
  if show_box:
9
  textbox = gr.Textbox()
10
  textbox2 = gr.Textbox()
11
- textbox.submit(lambda x:x, textbox, textbox2)
12
  else:
13
  gr.Markdown("Hidden textbox")
14
 
 
8
  if show_box:
9
  textbox = gr.Textbox()
10
  textbox2 = gr.Textbox()
11
+ textbox.change(lambda x:x, textbox, textbox2)
12
  else:
13
  gr.Markdown("Hidden textbox")
14