Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
@@ -77,13 +77,13 @@ with gr.Blocks(title="Audio Fusion") as iface:
|
|
77 |
# SLowed Effect and its arguments
|
78 |
with gr.Tab("Slowed Effect"):
|
79 |
speed_check = gr.Checkbox(label="Apply slowed effect")
|
80 |
-
with gr.Column(visible=
|
81 |
speed = gr.Slider(label="Slowed - Speed Multiplier", minimum=0.1, maximum=4, step=0.01, value=0.92)
|
82 |
|
83 |
# Reverb Effect and its arguments
|
84 |
with gr.Tab("Reverb Effect"):
|
85 |
reverb_check = gr.Checkbox(label="Apply reverb effect")
|
86 |
-
with gr.Column(visible=
|
87 |
room = gr.Slider(label="Reverb - Room Size", minimum=0, maximum=2, step=0.01, value=0.8)
|
88 |
damp = gr.Slider(label="Reverb - Damping", minimum=0, maximum=2, value=1)
|
89 |
width = gr.Slider(label="Reverb - Width", minimum=0, maximum=2, step=0.1, value=0.5)
|
@@ -93,21 +93,21 @@ with gr.Blocks(title="Audio Fusion") as iface:
|
|
93 |
# =====================================================
|
94 |
def di_v(check):
|
95 |
if check:
|
96 |
-
return {di_col: gr.Column(
|
97 |
else:
|
98 |
-
return {di_col: gr.Column(
|
99 |
|
100 |
def se_v(check):
|
101 |
if check:
|
102 |
-
return {se_col: gr.Column(
|
103 |
else:
|
104 |
-
return {se_col: gr.Column(
|
105 |
|
106 |
def re_v(check):
|
107 |
if check:
|
108 |
-
return {re_col: gr.Column(
|
109 |
else:
|
110 |
-
return {re_col: gr.Column(
|
111 |
|
112 |
|
113 |
dimension_check.change(di_v, inputs=[dimension_check], outputs=[di_col])
|
|
|
77 |
# SLowed Effect and its arguments
|
78 |
with gr.Tab("Slowed Effect"):
|
79 |
speed_check = gr.Checkbox(label="Apply slowed effect")
|
80 |
+
with gr.Column(visible=False) as se_col:
|
81 |
speed = gr.Slider(label="Slowed - Speed Multiplier", minimum=0.1, maximum=4, step=0.01, value=0.92)
|
82 |
|
83 |
# Reverb Effect and its arguments
|
84 |
with gr.Tab("Reverb Effect"):
|
85 |
reverb_check = gr.Checkbox(label="Apply reverb effect")
|
86 |
+
with gr.Column(visible=False) as re_col:
|
87 |
room = gr.Slider(label="Reverb - Room Size", minimum=0, maximum=2, step=0.01, value=0.8)
|
88 |
damp = gr.Slider(label="Reverb - Damping", minimum=0, maximum=2, value=1)
|
89 |
width = gr.Slider(label="Reverb - Width", minimum=0, maximum=2, step=0.1, value=0.5)
|
|
|
93 |
# =====================================================
|
94 |
def di_v(check):
|
95 |
if check:
|
96 |
+
return {di_col: gr.Column(visible=True)}
|
97 |
else:
|
98 |
+
return {di_col: gr.Column(visible=False)}
|
99 |
|
100 |
def se_v(check):
|
101 |
if check:
|
102 |
+
return {se_col: gr.Column(visible=True)}
|
103 |
else:
|
104 |
+
return {se_col: gr.Column(visible=False)}
|
105 |
|
106 |
def re_v(check):
|
107 |
if check:
|
108 |
+
return {re_col: gr.Column(visible=True)}
|
109 |
else:
|
110 |
+
return {re_col: gr.Column(visible=False)}
|
111 |
|
112 |
|
113 |
dimension_check.change(di_v, inputs=[dimension_check], outputs=[di_col])
|