Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ os.system("git clone https://github.com/doevent/FullSubNet-plus")
|
|
5 |
os.system("mv FullSubNet-plus/speech_enhance .")
|
6 |
os.system("mv FullSubNet-plus/config .")
|
7 |
os.system("gdown https://drive.google.com/uc?id=1UJSt1G0P_aXry-u79LLU_l9tCnNa2u7C -O best_model.tar")
|
8 |
-
from speech_enhance.tools.
|
9 |
|
10 |
|
11 |
# If the file is too duration to inference
|
@@ -22,7 +22,7 @@ def inference(audio):
|
|
22 |
if duration(audio) >= 150:
|
23 |
return "error.wav"
|
24 |
result = start(to_list_files=[audio])
|
25 |
-
return result
|
26 |
except Exception as e:
|
27 |
return "error.wav"
|
28 |
|
|
|
5 |
os.system("mv FullSubNet-plus/speech_enhance .")
|
6 |
os.system("mv FullSubNet-plus/config .")
|
7 |
os.system("gdown https://drive.google.com/uc?id=1UJSt1G0P_aXry-u79LLU_l9tCnNa2u7C -O best_model.tar")
|
8 |
+
from speech_enhance.tools.denoise_hf_clone_voice import start
|
9 |
|
10 |
|
11 |
# If the file is too duration to inference
|
|
|
22 |
if duration(audio) >= 150:
|
23 |
return "error.wav"
|
24 |
result = start(to_list_files=[audio])
|
25 |
+
return result[0]
|
26 |
except Exception as e:
|
27 |
return "error.wav"
|
28 |
|