File size: 339 Bytes
d5b1bca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr

demo = None

def component():
    with gr.Row():
        gr.Textbox("Hello")
        gr.Textbox("World")


with gr.Blocks() as demo:
    for c in [component, component]:
        c()
    gr.Button("Hey")

print("heyhey")
with gr.Blocks() as demo:
    for c in [component, component]:
        c()
    gr.Textbox("World")