mantrakp commited on
Commit
7733adf
β€’
1 Parent(s): 60d107b

Refactor image_tab.py to update tab labels in app.py

Browse files
Files changed (2) hide show
  1. app.py +8 -4
  2. tabs/image_tab.py +3 -4
app.py CHANGED
@@ -18,10 +18,14 @@ def main():
18
 
19
  # Tabs
20
  with gr.Tabs():
21
- image_tab()
22
- audio_tab()
23
- video_tab()
24
- text_tab()
 
 
 
 
25
 
26
  demo.launch(
27
  share=False,
 
18
 
19
  # Tabs
20
  with gr.Tabs():
21
+ with gr.Tab(label="πŸ–ΌοΈ Image"):
22
+ image_tab()
23
+ with gr.Tab(label="🎡 Audio"):
24
+ audio_tab()
25
+ with gr.Tab(label="πŸŽ₯ Video"):
26
+ video_tab()
27
+ with gr.Tab(label="πŸ“ Text"):
28
+ text_tab()
29
 
30
  demo.launch(
31
  share=False,
tabs/image_tab.py CHANGED
@@ -10,10 +10,9 @@ from config import flux_models, sdxl_models, flux_loras
10
 
11
 
12
  def image_tab():
13
- with gr.Tab(label="πŸ–ΌοΈ Image"):
14
- with gr.Tabs():
15
- flux_tab()
16
- sdxl_tab()
17
 
18
 
19
  def flux_tab():
 
10
 
11
 
12
  def image_tab():
13
+ with gr.Tabs():
14
+ flux_tab()
15
+ sdxl_tab()
 
16
 
17
 
18
  def flux_tab():