mantrakp
commited on
Commit
β’
7733adf
1
Parent(s):
60d107b
Refactor image_tab.py to update tab labels in app.py
Browse files- app.py +8 -4
- tabs/image_tab.py +3 -4
app.py
CHANGED
@@ -18,10 +18,14 @@ def main():
|
|
18 |
|
19 |
# Tabs
|
20 |
with gr.Tabs():
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
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.
|
14 |
-
|
15 |
-
|
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():
|