Update app.py
Browse files
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.
|
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)
|