Skip to content

Commit

Permalink
Initialize last_segment to None
Browse files Browse the repository at this point in the history
Signed-off-by: makaveli10 <[email protected]>
  • Loading branch information
makaveli10 committed Aug 30, 2024
1 parent bdaed45 commit 01c6bc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions whisper_live/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,8 @@ def update_segments(self, segments, duration):
"""
offset = None
self.current_out = ''
last_segment = None

# process complete segments
if len(segments) > 1:
for i, s in enumerate(segments[:-1]):
Expand Down

0 comments on commit 01c6bc1

Please sign in to comment.