Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
|
|
2 |
from speechbrain.pretrained import SepformerSeparation as separator
|
3 |
import torchaudio
|
4 |
|
5 |
-
model = separator.from_hparams(source="speechbrain/sepformer-wham-enhancement", savedir='pretrained_models/sepformer-wham-enhancement')
|
|
|
6 |
|
7 |
def predict_song(audio_path):
|
8 |
est_sources = model.separate_file(path=audio_path)
|
|
|
2 |
from speechbrain.pretrained import SepformerSeparation as separator
|
3 |
import torchaudio
|
4 |
|
5 |
+
# model = separator.from_hparams(source="speechbrain/sepformer-wham-enhancement", savedir='pretrained_models/sepformer-wham-enhancement')
|
6 |
+
model = separator.from_hparams(source="speechbrain/sepformer-dns4-16k-enhancement", savedir='pretrained_models/sepformer-dns4-16k-enhancement')
|
7 |
|
8 |
def predict_song(audio_path):
|
9 |
est_sources = model.separate_file(path=audio_path)
|