Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from clearvoice import ClearVoice
|
|
5 |
|
6 |
myClearVoice = ClearVoice(task='speech_enhancement', model_names=['FRCRN_SE_16K'])
|
7 |
|
8 |
-
def fn_clearvoice(
|
9 |
-
output_wav_dict = myClearVoice(input_path=
|
10 |
if isinstance(output_wav_dict, dict):
|
11 |
key = next(iter(output_wav_dict))
|
12 |
output_wav = output_wav_dict[key]
|
|
|
5 |
|
6 |
myClearVoice = ClearVoice(task='speech_enhancement', model_names=['FRCRN_SE_16K'])
|
7 |
|
8 |
+
def fn_clearvoice(input_wav):
|
9 |
+
output_wav_dict = myClearVoice(input_path=input_wav, online_write=False)
|
10 |
if isinstance(output_wav_dict, dict):
|
11 |
key = next(iter(output_wav_dict))
|
12 |
output_wav = output_wav_dict[key]
|