Baghdad99 commited on
Commit
868f598
1 Parent(s): cd07de6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
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: