kidwaiaun commited on
Commit
7496b5d
·
verified ·
1 Parent(s): 9cba103

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -0
app.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def tab1_content():
4
+ with gr.Row():
5
+ with gr.Column():
6
+ gr.Textbox(label="Input 1", placeholder="Enter something for column 1")
7
+ gr.Button("Submit Column 1")
8
+ with gr.Column():
9
+ gr.Textbox(label="Input 2", placeholder="Enter something for column 2")
10
+ gr.Button("Submit Column 2")
11
+
12
+ def tab2_content():
13
+ gr.Textbox(label="Tab 2 Content", placeholder="This is Tab 2")
14
+
15
+ def tab3_content():
16
+ gr.Textbox(label="Tab 3 Content", placeholder="This is Tab 3")
17
+
18
+ with gr.Blocks() as agentApp:
19
+ with gr.Tab("Tab 1"):
20
+ tab1_content()
21
+ with gr.Tab("Tab 2"):
22
+ tab2_content()
23
+ with gr.Tab("Tab 3"):
24
+ tab3_content()
25
+
26
+ agentApp.launch()