Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
@@ -62,30 +62,37 @@ def process_audio(input_file,
|
|
62 |
|
63 |
|
64 |
with gr.Blocks(title="Audio Fusion") as iface:
|
65 |
-
|
66 |
-
gr.Audio(label="Upload your music file", type="filepath"),
|
67 |
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
gr.
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
gr.Checkbox(label="Apply
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
gr.
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
btn = gr.Button("Run")
|
89 |
-
btn.click(fn=process_audio, inputs=inputs, outputs=
|
90 |
|
91 |
iface.launch(share=False)
|
|
|
62 |
|
63 |
|
64 |
with gr.Blocks(title="Audio Fusion") as iface:
|
65 |
+
gr.Markdown("<p align="center"><h1>Audio Fusion</h1></p>")
|
|
|
66 |
|
67 |
+
input_audio = gr.Audio(label="Upload your music file", type="filepath")
|
68 |
+
|
69 |
+
# 8d Effect and its arguments
|
70 |
+
with gr.Tab("8d Effect"):
|
71 |
+
d_check = gr.Checkbox(label="Apply 8D effect")
|
72 |
+
pan = gr.Slider(label="8D - Pan Boundary", minimum=0, maximum=100, value=100)
|
73 |
+
jump = gr.Slider(label="8D - Jump Percentage", minimum=1, maximum=100, value=5)
|
74 |
+
time = gr.Slider(label="8D - Time L to R (s)", minimum=1, maximum=30, value=10)
|
75 |
+
volx = gr.Slider(label="8D - Volume Multiplier", minimum=1, maximum=20, value=6)
|
76 |
+
|
77 |
+
# SLowed Effect and its arguments
|
78 |
+
with gr.Tab("Slowed Effect"):
|
79 |
+
speed_check = gr.Checkbox(label="Apply slowed effect"),
|
80 |
+
speed = gr.Slider(label="Slowed - Speed Multiplier", minimum=0.1, maximum=4, step=0.01, value=0.92),
|
81 |
+
|
82 |
+
# Reverb Effect and its arguments
|
83 |
+
with gr.Tab("Reverb Effect"):
|
84 |
+
reverb_check = gr.Checkbox(label="Apply reverb effect"),
|
85 |
+
with gr.Column():
|
86 |
+
room = gr.Slider(label="Reverb - Room Size", minimum=0, maximum=2, step=0.01, value=0.8),
|
87 |
+
damp = gr.Slider(label="Reverb - Damping", minimum=0, maximum=2, value=1),
|
88 |
+
width = gr.Slider(label="Reverb - Width", minimum=0, maximum=2, step=0.1, value=0.5),
|
89 |
+
wet = gr.Slider(label="Reverb - Wet Level", minimum=0, maximum=2, step=0.1, value=0.3),
|
90 |
+
dry = gr.Slider(label="Reverb - Dry Level", minimum=0, maximum=2, step=0.1, value=0.8),
|
91 |
+
|
92 |
+
inputs = [input_audio, d_check, pan, jump, time, volx]
|
93 |
+
output = gr.Audio(label="Download processed music", type="filepath")
|
94 |
+
|
95 |
btn = gr.Button("Run")
|
96 |
+
btn.click(fn=process_audio, inputs=inputs, outputs=output, api_name="AudioFusion")
|
97 |
|
98 |
iface.launch(share=False)
|