zarox commited on
Commit
6df37b5
·
1 Parent(s): d56b541
Files changed (1) hide show
  1. app.py +18 -4
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 visiblity(check, col):
95
  if check:
96
- return {col: gr.Column(visiblity=True)}
97
  else:
98
- return {col: gr.Column(visiblity=False)}
 
 
 
 
 
 
 
 
 
 
 
 
99
 
100
 
101
- dimension_check.change(visiblity, inputs=[dimension_check, di_col], outputs=[di_col])
 
 
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")]