Sabbah13 commited on
Commit
d35d295
1 Parent(s): e30f74a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def convert_segments_object_to_text(data):
37
 
38
  if 'end' not in word_info:
39
  if i < len(words) - 1 and 'start' in words[i + 1]:
40
- word_info['end'] = words[i - 1]['start']
41
  elif i == len(words) - 1:
42
  word_info['end'] = segment_end
43
  else:
 
37
 
38
  if 'end' not in word_info:
39
  if i < len(words) - 1 and 'start' in words[i + 1]:
40
+ word_info['end'] = words[i + 1]['start']
41
  elif i == len(words) - 1:
42
  word_info['end'] = segment_end
43
  else: