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

Update app.py

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