Baghdad99 commited on
Commit
776c3e1
1 Parent(s): aef1f22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def translate_speech(audio_data_tuple):
25
  audio_data_normalized = audio_data / np.iinfo(audio_data.dtype).max
26
 
27
  # Convert the normalized audio data to float64
28
- audio_data_float64 = audio_data_normalized.astype(np.float32)
29
 
30
  # Use the speech recognition pipeline to transcribe the audio
31
  output = pipe(audio_data_float64)
 
25
  audio_data_normalized = audio_data / np.iinfo(audio_data.dtype).max
26
 
27
  # Convert the normalized audio data to float64
28
+ audio_data_float64 = audio_data_normalized.astype(np.float64)
29
 
30
  # Use the speech recognition pipeline to transcribe the audio
31
  output = pipe(audio_data_float64)