Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
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
|