Tonic commited on
Commit
13a19c6
1 Parent(s): 5033513

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def whisper_speech_demo(text, lang, speaker_audio, mix_lang, mix_text):
39
  audio_data_resampled = next(resample_audio([{'sample_rate': 22050, 'samples': audio_data.cpu()}]))['samples_24k']
40
 
41
  # Normalize audio
42
- audio_np = audio_data.numpy()
43
  audio_np = audio_np / np.max(np.abs(audio_np))
44
 
45
  # Save to a temporary WAV file
 
39
  audio_data_resampled = next(resample_audio([{'sample_rate': 22050, 'samples': audio_data.cpu()}]))['samples_24k']
40
 
41
  # Normalize audio
42
+ audio_np = audio_data.cpu().numpy()
43
  audio_np = audio_np / np.max(np.abs(audio_np))
44
 
45
  # Save to a temporary WAV file