Kevin676 commited on
Commit
5e6aad4
1 Parent(s): 38494b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ enhance_model = SpectralMaskEnhancement.from_hparams(
11
  def speechbrain(aud):
12
  # Load and add fake batch dimension
13
  noisy = enhance_model.load_audio(
14
- aud.name
15
  ).unsqueeze(0)
16
  enhanced = enhance_model.enhance_batch(noisy, lengths=torch.tensor([1.]))
17
  torchaudio.save('enhanced.wav', enhanced.cpu(), 16000)
 
11
  def speechbrain(aud):
12
  # Load and add fake batch dimension
13
  noisy = enhance_model.load_audio(
14
+ aud
15
  ).unsqueeze(0)
16
  enhanced = enhance_model.enhance_batch(noisy, lengths=torch.tensor([1.]))
17
  torchaudio.save('enhanced.wav', enhanced.cpu(), 16000)