alibabasglab commited on
Commit
ca9e869
·
verified ·
1 Parent(s): dba113a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def fn_clearvoice_sr(input_wav, apply_se):
72
  if apply_se:
73
  new_wavname = wavname.replace('.wav', str(random.randint(0,1000))+'.wav')
74
  myClearVoice_se = ClearVoice(task='speech_enhancement', model_names=['MossFormer2_SE_48K'])
75
- output_wav_dict = myClearVoice_se(input_path=input_wav, online_write=True, output_path=new_wavname)
76
  input_wav = new_wavname
77
 
78
  output_wav_dict = myClearVoice(input_path=input_wav, online_write=False)
 
72
  if apply_se:
73
  new_wavname = wavname.replace('.wav', str(random.randint(0,1000))+'.wav')
74
  myClearVoice_se = ClearVoice(task='speech_enhancement', model_names=['MossFormer2_SE_48K'])
75
+ myClearVoice_se(input_path=input_wav, online_write=True, output_path=new_wavname)
76
  input_wav = new_wavname
77
 
78
  output_wav_dict = myClearVoice(input_path=input_wav, online_write=False)