Rawiwan1912 commited on
Commit
ebef676
·
verified ·
1 Parent(s): 37a99f5

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # สร้างแอปที่มีสองแท็บ
4
+ with gr.Blocks() as app:
5
+ with gr.Tab("Tab 1"):
6
+ gr.Markdown("This is Tab 1") # ข้อความในแท็บแรก
7
+
8
+ with gr.Tab("Tab 2"):
9
+ gr.Markdown("This is Tab 2") # ข้อความในแท็บที่สอง
10
+
11
+ # เรียกใช้งานแอป
12
+ app.launch()