ashish0209 commited on
Commit
4526d54
1 Parent(s): ed02a85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -45,7 +45,13 @@ def transcribe(audio_file, model):
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
 
45
  )
46
 
47
  # Prepare JSON output
48
+ transcript = []
49
+ for segment in segments:
50
+ x = segemnt.text
51
+ x = ts.translate_text(x)
52
+ transcript.append(x)
53
+
54
+
55
  print(f"Time Taken to transcribe: {time() - start}")
56
  print(transcript)
57
  output = transcript