tilents
user complete1
869c384
raw
history blame contribute delete
352 Bytes
import gradio as gr
with gr.Blocks() as demo:
with gr.Blocks() as block1:
gr.Button("1")
with gr.Blocks() as block2:
gr.Button("2")
# gr.Button("Toggle Block 1").click(toggle_block1, None)
# 在这里,您可以将不同的组件添加到块1和块2中
# 然后通过点击按钮来切换块1的可见性
demo.launch()