Skip to content

Commit

Permalink
Hotfix : chunk divide out of index error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Son-GyeongSik committed Nov 13, 2023
1 parent b9ea851 commit 6d2b782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/summary/summaryv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def divide_chunk(scripts: dict):
else:
chunk_text += script['text']

if len(chunk_text) < 1000:
if len(chunk_text) < 1000 and len(chunks) > 0:
chunks[-1] += chunk_text
else:
time_stamps.append(time_stamp)
Expand Down

0 comments on commit 6d2b782

Please sign in to comment.