Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ with gr.Blocks(title="Audio Fusion") as iface:
|
|
69 |
# 8d Effect and its arguments
|
70 |
with gr.Tab("8d Effect"):
|
71 |
d_check = gr.Checkbox(label="Apply 8D effect")
|
72 |
-
with gr.
|
73 |
pan = gr.Slider(label="8D - Pan Boundary", minimum=0, maximum=100, value=100)
|
74 |
jump = gr.Slider(label="8D - Jump Percentage", minimum=1, maximum=100, value=5)
|
75 |
time = gr.Slider(label="8D - Time L to R (s)", minimum=1, maximum=30, value=10)
|
@@ -84,17 +84,17 @@ with gr.Blocks(title="Audio Fusion") as iface:
|
|
84 |
# Reverb Effect and its arguments
|
85 |
with gr.Tab("Reverb Effect"):
|
86 |
reverb_check = gr.Checkbox(label="Apply reverb effect"),
|
87 |
-
with gr.
|
88 |
room = gr.Slider(label="Reverb - Room Size", minimum=0, maximum=2, step=0.01, value=0.8),
|
89 |
damp = gr.Slider(label="Reverb - Damping", minimum=0, maximum=2, value=1),
|
90 |
width = gr.Slider(label="Reverb - Width", minimum=0, maximum=2, step=0.1, value=0.5),
|
91 |
wet = gr.Slider(label="Reverb - Wet Level", minimum=0, maximum=2, step=0.1, value=0.3),
|
92 |
dry = gr.Slider(label="Reverb - Dry Level", minimum=0, maximum=2, step=0.1, value=0.8),
|
93 |
|
94 |
-
inputs = [input_audio, d_check, pan, jump, time, volx, speed_check, speed, reverb_check, room, damp, width, wet, dry]
|
95 |
output = [gr.Audio(label="Download processed music", type="filepath")]
|
96 |
|
97 |
btn = gr.Button("Run", size="sm")
|
98 |
-
|
99 |
|
100 |
iface.launch(share=False)
|
|
|
69 |
# 8d Effect and its arguments
|
70 |
with gr.Tab("8d Effect"):
|
71 |
d_check = gr.Checkbox(label="Apply 8D effect")
|
72 |
+
with gr.Column():
|
73 |
pan = gr.Slider(label="8D - Pan Boundary", minimum=0, maximum=100, value=100)
|
74 |
jump = gr.Slider(label="8D - Jump Percentage", minimum=1, maximum=100, value=5)
|
75 |
time = gr.Slider(label="8D - Time L to R (s)", minimum=1, maximum=30, value=10)
|
|
|
84 |
# Reverb Effect and its arguments
|
85 |
with gr.Tab("Reverb Effect"):
|
86 |
reverb_check = gr.Checkbox(label="Apply reverb effect"),
|
87 |
+
with gr.Column():
|
88 |
room = gr.Slider(label="Reverb - Room Size", minimum=0, maximum=2, step=0.01, value=0.8),
|
89 |
damp = gr.Slider(label="Reverb - Damping", minimum=0, maximum=2, value=1),
|
90 |
width = gr.Slider(label="Reverb - Width", minimum=0, maximum=2, step=0.1, value=0.5),
|
91 |
wet = gr.Slider(label="Reverb - Wet Level", minimum=0, maximum=2, step=0.1, value=0.3),
|
92 |
dry = gr.Slider(label="Reverb - Dry Level", minimum=0, maximum=2, step=0.1, value=0.8),
|
93 |
|
94 |
+
inputs = list([input_audio, d_check, pan, jump, time, volx, speed_check, speed, reverb_check, room, damp, width, wet, dry])
|
95 |
output = [gr.Audio(label="Download processed music", type="filepath")]
|
96 |
|
97 |
btn = gr.Button("Run", size="sm")
|
98 |
+
btn.click(fn=process_audio, inputs=inputs, outputs=output, api_name="AudioFusion")
|
99 |
|
100 |
iface.launch(share=False)
|