benjamin-paine commited on
Commit
30e0dca
·
verified ·
1 Parent(s): 9dd4304

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -301,15 +301,16 @@ if __name__ == "__main__":
301
  with gr.Column():
302
  speaker_uncond = gr.Checkbox(label="Skip Speaker")
303
  speaker_noised_checkbox = gr.Checkbox(
304
- label="Denoise Speaker",
305
  value=False,
306
- info="Note; this is not a pre-processing step, it is a conditioning value that the model understands. Check this box if your input audio is noisy."
 
307
  )
308
  speaker_equalize_checkbox = gr.Checkbox(label="Equalize Speaker Audio", value=True)
309
  speaker_enhance_checkbox = gr.Checkbox(label="Enhance Speaker Audio with DeepFilterNet", value=True)
310
 
311
  def on_enhanced_change(use_enhance: bool) -> Dict[str, Any]:
312
- update_dict = {"enabled": not use_enhance}
313
  if use_enhance:
314
  update_dict["value"] = False
315
  return gr.update(**update_dict)
 
301
  with gr.Column():
302
  speaker_uncond = gr.Checkbox(label="Skip Speaker")
303
  speaker_noised_checkbox = gr.Checkbox(
304
+ label="Speaker Noised",
305
  value=False,
306
+ interactive=False,
307
+ info="'Speaker Noised' is a conditioning value that the model understands, not a processing step. Check this box if your input audio is noisy."
308
  )
309
  speaker_equalize_checkbox = gr.Checkbox(label="Equalize Speaker Audio", value=True)
310
  speaker_enhance_checkbox = gr.Checkbox(label="Enhance Speaker Audio with DeepFilterNet", value=True)
311
 
312
  def on_enhanced_change(use_enhance: bool) -> Dict[str, Any]:
313
+ update_dict = {"interactive": not use_enhance}
314
  if use_enhance:
315
  update_dict["value"] = False
316
  return gr.update(**update_dict)