Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,9 +25,6 @@ def translate_speech(audio_data_tuple):
|
|
25 |
# Use the speech recognition model to transcribe the audio
|
26 |
output = model.transcribe([temp_audio_file.name])
|
27 |
print(f"Output: {output}") # Print the output to see what it contains
|
28 |
-
# Use the speech recognition model to transcribe the audio
|
29 |
-
output = model.transcribe(audio_data)
|
30 |
-
print(f"Output: {output}") # Print the output to see what it contains
|
31 |
|
32 |
# Check if the output contains 'transcription'
|
33 |
if 'transcription' in output:
|
|
|
25 |
# Use the speech recognition model to transcribe the audio
|
26 |
output = model.transcribe([temp_audio_file.name])
|
27 |
print(f"Output: {output}") # Print the output to see what it contains
|
|
|
|
|
|
|
28 |
|
29 |
# Check if the output contains 'transcription'
|
30 |
if 'transcription' in output:
|