JinhuaL1ANG commited on
Commit
dfd8d42
·
verified ·
1 Parent(s): 8c8828a

Create gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +17 -0
gradio_app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Entry to launch gradio app."""
2
+ import gradio as gr
3
+ from src.demo.gradio_utils import *
4
+
5
+
6
+ with gr.Blocks(css="style.css") as demo:
7
+ gr.Markdown("# 🎵 AudioMorphix Gradio Demo 🎵\n<p>Select a task and edit audio interactively.</p>")
8
+ with gr.Tabs():
9
+ with gr.TabItem("Mix Audio"):
10
+ create_add_demo()
11
+ with gr.TabItem("Remove Audio"):
12
+ create_remove_demo()
13
+ with gr.TabItem("Move & Resize Audio"):
14
+ create_move_demo()
15
+
16
+ demo.queue(max_size=20)
17
+ demo.launch(debug=True) # , server_name="0.0.0.0", server_port=7200