fix(runtime): skip empty deduplicated event segments

Signed-off-by: LauraGPT <[email protected]>
This commit is contained in:
LauraGPT
2026-10-01 04:54:48 +00:00
parent 23f50baacb
commit 643f443ba2
3 changed files with 56 additions and 0 deletions
@@ -355,6 +355,8 @@ def rich_transcription_postprocess(s):
continue
if get_event(s_list[i]) == cur_ent_event and get_event(s_list[i]) != None:
s_list[i] = s_list[i][1:]
if len(s_list[i]) == 0:
continue
# else:
cur_ent_event = get_event(s_list[i])
if get_emo(s_list[i]) != None and get_emo(s_list[i]) == get_emo(new_s):
@@ -409,6 +409,8 @@ def rich_transcription_postprocess(s):
continue
if get_event(s_list[i]) == cur_ent_event and get_event(s_list[i]) != None:
s_list[i] = s_list[i][1:]
if len(s_list[i]) == 0:
continue
# else:
cur_ent_event = get_event(s_list[i])
if get_emo(s_list[i]) != None and get_emo(s_list[i]) == get_emo(new_s):