Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
@@ -63,7 +63,6 @@ def process_audio(input_file,
|
|
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
|
@@ -91,6 +90,7 @@ with gr.Blocks(title="Audio Fusion") as iface:
|
|
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 |
def di_v(check):
|
95 |
if check:
|
96 |
return {di_col: gr.Column(visiblity=True)}
|
@@ -110,9 +110,10 @@ with gr.Blocks(title="Audio Fusion") as iface:
|
|
110 |
return {re_col: gr.Column(visiblity=False)}
|
111 |
|
112 |
|
113 |
-
dimension_check.change(
|
114 |
-
speed_check.change(
|
115 |
-
reverb_check.change(
|
|
|
116 |
|
117 |
inputs = [input_audio, dimension_check, pan, jump, time, volx, speed_check, speed, reverb_check, room, damp, width, wet, dry]
|
118 |
output = [gr.Audio(label="Download processed music", type="filepath")]
|
|
|
63 |
|
64 |
with gr.Blocks(title="Audio Fusion") as iface:
|
65 |
gr.Markdown("<p align='center'><h1>Audio Fusion</h1></p>")
|
|
|
66 |
input_audio = gr.Audio(label="Upload your music file", type="filepath")
|
67 |
|
68 |
# 8d Effect and its arguments
|
|
|
90 |
wet = gr.Slider(label="Reverb - Wet Level", minimum=0, maximum=2, step=0.1, value=0.3)
|
91 |
dry = gr.Slider(label="Reverb - Dry Level", minimum=0, maximum=2, step=0.1, value=0.8)
|
92 |
|
93 |
+
# =====================================================
|
94 |
def di_v(check):
|
95 |
if check:
|
96 |
return {di_col: gr.Column(visiblity=True)}
|
|
|
110 |
return {re_col: gr.Column(visiblity=False)}
|
111 |
|
112 |
|
113 |
+
dimension_check.change(di_v, inputs=[dimension_check], outputs=[di_col])
|
114 |
+
speed_check.change(se_v, inputs=[speed_check], outputs=[se_col])
|
115 |
+
reverb_check.change(re_v, inputs=[reverb_check], outputs=[re_col])
|
116 |
+
# =====================================================
|
117 |
|
118 |
inputs = [input_audio, dimension_check, pan, jump, time, volx, speed_check, speed, reverb_check, room, damp, width, wet, dry]
|
119 |
output = [gr.Audio(label="Download processed music", type="filepath")]
|