Spaces:
Sleeping
Sleeping
JarvisLabs
commited on
Commit
•
ae0f347
1
Parent(s):
c331d2f
Update app.py
Browse files
app.py
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
from gen_tab import create_gen_tab
|
3 |
-
from train_tab import create_train_tab
|
4 |
-
from dotenv import load_dotenv, find_dotenv
|
5 |
-
import os
|
6 |
-
|
7 |
-
_ = load_dotenv(find_dotenv())
|
8 |
-
with gr.Blocks(theme=gr.themes.Soft(
|
9 |
-
radius_size=gr.themes.sizes.radius_none,
|
10 |
-
primary_hue=gr.themes.colors.emerald, secondary_hue=gr.themes.colors.green
|
11 |
-
|
12 |
-
)) as demo:
|
13 |
-
with gr.Tabs() as tabs:
|
14 |
-
create_gen_tab()
|
15 |
-
create_train_tab()
|
16 |
-
# with gr.TabItem("Theme builder"):
|
17 |
-
# gr.themes.builder()
|
18 |
-
|
19 |
-
|
20 |
-
demo.launch(share=True,debug=True
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from gen_tab import create_gen_tab
|
3 |
+
from train_tab import create_train_tab
|
4 |
+
from dotenv import load_dotenv, find_dotenv
|
5 |
+
import os
|
6 |
+
|
7 |
+
_ = load_dotenv(find_dotenv())
|
8 |
+
with gr.Blocks(theme=gr.themes.Soft(
|
9 |
+
radius_size=gr.themes.sizes.radius_none,
|
10 |
+
primary_hue=gr.themes.colors.emerald, secondary_hue=gr.themes.colors.green
|
11 |
+
|
12 |
+
)) as demo:
|
13 |
+
with gr.Tabs() as tabs:
|
14 |
+
create_gen_tab()
|
15 |
+
create_train_tab()
|
16 |
+
# with gr.TabItem("Theme builder"):
|
17 |
+
# gr.themes.builder()
|
18 |
+
|
19 |
+
|
20 |
+
demo.launch(share=True,debug=True,auth=[("username", "password"),(os.getenv("APP_USER"),os.getenv("APP_PW"))])
|