hieugiaosu commited on
Commit
07d805d
·
1 Parent(s): 3de5b54
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,8 +59,8 @@ def seprate(mixed_voice_path, clean_voice_path, drop_down):
59
  mixed_voice,
60
  e,
61
  )
62
- yHat = torchaudio.functional.resample(yHat, 8000, 16000).numpy().astype('float32')
63
- audio = gr.Audio(tuple((16000,yHat[0])),type='numpy')
64
  return audio
65
 
66
  def load_checkpoint(filepath):
 
59
  mixed_voice,
60
  e,
61
  )
62
+ yHat = yHat.numpy().astype('float32')
63
+ audio = gr.Audio(tuple((8000,yHat[0])),type='numpy')
64
  return audio
65
 
66
  def load_checkpoint(filepath):