Skip to content

Commit

Permalink
Merge pull request #272 from makaveli10/fix_last_segment_init
Browse files Browse the repository at this point in the history
Initialize last_segment to None.
  • Loading branch information
zoq authored Aug 30, 2024
2 parents bdaed45 + 01c6bc1 commit 30f78a2
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 30f78a2

Please sign in to comment.