Spaces:
No application file
No application file
smile
commited on
Commit
·
b9e2d5a
1
Parent(s):
8772b50
update main.py to start app
Browse files
app.py
CHANGED
@@ -9,17 +9,15 @@ from app.ui.about import init_about
|
|
9 |
import gradio as gr
|
10 |
|
11 |
|
12 |
-
def main():
|
13 |
-
home = init_home()
|
14 |
-
about = init_about()
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
22 |
|
23 |
|
24 |
-
if __name__ == '__main__':
|
25 |
-
main()
|
|
|
9 |
import gradio as gr
|
10 |
|
11 |
|
|
|
|
|
|
|
12 |
|
13 |
+
home = init_home()
|
14 |
+
about = init_about()
|
15 |
+
|
16 |
+
demo = gr.TabbedInterface(
|
17 |
+
[home, about],
|
18 |
+
["Home", "About"],
|
19 |
+
css="footer {display: none} .sort-button.svelte-1bvc1p0.svelte-1bvc1p0.svelte-1bvc1p0 {display: none;}"
|
20 |
+
)
|
21 |
+
demo.launch()
|
22 |
|
23 |
|
|
|
|