Spaces:
Running
Running
File size: 365 Bytes
8fdc208 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
with gr.Blocks() as demo:
show_box = gr.Checkbox()
@gr.render(inputs=show_box)
def render(show_box):
if show_box:
textbox = gr.Textbox()
textbox2 = gr.Textbox()
textbox.submit(lambda x:x, textbox, textbox2)
else:
gr.Markdown("Hidden textbox")
demo.launch(debug=True) |