Update app.py
Browse files
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
|
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:
|