Skip to content

Commit

Permalink
Catch keyboard interrupt in diart.stream (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmc2005 authored Oct 11, 2023
1 parent 1d1d826 commit 45f8ad9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/diart/console/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ def run():
inference.attach_observers(
RTTMWriter(audio_source.uri, args.output / f"{audio_source.uri}.rttm")
)
inference()
try:
inference()
except KeyboardInterrupt:
pass


if __name__ == "__main__":
Expand Down

0 comments on commit 45f8ad9

Please sign in to comment.