mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-25 10:21:00 +00:00
Update logger
This commit is contained in:
parent
9cd80ab047
commit
85f9b8fc13
2 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,7 @@ def main() -> None:
|
|||
opts = get_opts()
|
||||
basicConfig(
|
||||
level=DEBUG if opts.debug else INFO,
|
||||
format="[%(asctime)s] %(module)s.%(funcName)s %(levelname)s -> %(message)s",
|
||||
format="[%(asctime)s] %(module)s.%(funcName)s:%(lineno)d %(levelname)s -> %(message)s",
|
||||
)
|
||||
|
||||
if opts.beam_size <= 0:
|
||||
|
|
|
@ -258,6 +258,7 @@ class WhisperStreamingTranscriber:
|
|||
):
|
||||
seek += segment.shape[-1]
|
||||
rest_start = None
|
||||
logger.debug(f"Skip: {segment.shape[-1]}")
|
||||
continue
|
||||
|
||||
segment_duration = segment.shape[-1] * HOP_LENGTH / SAMPLE_RATE
|
||||
|
|
Loading…
Reference in a new issue