Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
@@ -91,14 +91,28 @@ 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
|
95 |
if check:
|
96 |
-
return {
|
97 |
else:
|
98 |
-
return {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
|
101 |
-
dimension_check.change(visiblity, inputs=[dimension_check
|
|
|
|
|
102 |
|
103 |
inputs = [input_audio, dimension_check, pan, jump, time, volx, speed_check, speed, reverb_check, room, damp, width, wet, dry]
|
104 |
output = [gr.Audio(label="Download processed music", type="filepath")]
|
|
|
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)}
|
97 |
else:
|
98 |
+
return {di_col: gr.Column(visiblity=False)}
|
99 |
+
|
100 |
+
def se_v(check):
|
101 |
+
if check:
|
102 |
+
return {se_col: gr.Column(visiblity=True)}
|
103 |
+
else:
|
104 |
+
return {se_col: gr.Column(visiblity=False)}
|
105 |
+
|
106 |
+
def re_v(check):
|
107 |
+
if check:
|
108 |
+
return {re_col: gr.Column(visiblity=True)}
|
109 |
+
else:
|
110 |
+
return {re_col: gr.Column(visiblity=False)}
|
111 |
|
112 |
|
113 |
+
dimension_check.change(visiblity, inputs=[dimension_check], outputs=[di_col])
|
114 |
+
speed_check.change(visiblity, inputs=[speed_check], outputs=[se_col])
|
115 |
+
reverb_check.change(visiblity, inputs=[reverb_check], outputs=[re_col])
|
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")]
|