Skip to content

Commit

Permalink
Merge pull request #104 from sidg1215/fix/assistant
Browse files Browse the repository at this point in the history
`Segment` is not subscriptable, removed subscript.
  • Loading branch information
absadiki authored Feb 25, 2025
2 parents fc58ffb + de72251 commit 87577f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywhispercpp/examples/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _transcribe_speech(self):

def _new_segment_callback(self, seg):
if self.commands_callback:
self.commands_callback(seg[0].text)
self.commands_callback(seg.text)

def start(self) -> None:
"""
Expand Down

0 comments on commit 87577f5

Please sign in to comment.