Tonic commited on
Commit
2d4f3d2
1 Parent(s): 85d5a02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def whisper_speech_demo(text, lang, speaker_audio=None, mix_lang=None, mix_text=
35
 
36
  with tempfile.NamedTemporaryFile(delete=False, suffix='.wav') as tmp_file:
37
  tmp_file_name = tmp_file.name
38
- audio_np = audio_data.numpy()cpu().numpy()
39
  sf.write(tmp_file_name, audio_np, 22050)
40
 
41
  return tmp_file_name
 
35
 
36
  with tempfile.NamedTemporaryFile(delete=False, suffix='.wav') as tmp_file:
37
  tmp_file_name = tmp_file.name
38
+ audio_np = audio_data.cpu().numpy()
39
  sf.write(tmp_file_name, audio_np, 22050)
40
 
41
  return tmp_file_name