Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ model = separator.from_hparams(source="speechbrain/sepformer-dns4-16k-enhancemen
|
|
7 |
|
8 |
def predict_song(audio_path):
|
9 |
est_sources = model.separate_file(path=audio_path)
|
10 |
-
torchaudio.save("enhanced_wham.wav", est_sources[:, :, 0].detach().cpu(),
|
11 |
return "enhanced_wham.wav"
|
12 |
|
13 |
|
|
|
7 |
|
8 |
def predict_song(audio_path):
|
9 |
est_sources = model.separate_file(path=audio_path)
|
10 |
+
torchaudio.save("enhanced_wham.wav", est_sources[:, :, 0].detach().cpu(), 16000)
|
11 |
return "enhanced_wham.wav"
|
12 |
|
13 |
|