ashish0209 commited on
Commit
ed02a85
1 Parent(s): a422160

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def transcribe(audio_file, model):
45
  )
46
 
47
  # Prepare JSON output
48
- transcript = [ts.translate_text(q_text) for segment in segments if segment.text]
49
  print(f"Time Taken to transcribe: {time() - start}")
50
  print(transcript)
51
  output = transcript
 
45
  )
46
 
47
  # Prepare JSON output
48
+ transcript = [ts.translate_text(segemnt.text) for segment in segments]
49
  print(f"Time Taken to transcribe: {time() - start}")
50
  print(transcript)
51
  output = transcript