mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
* Fix crash in ASR tasks when lm is set to none in #2237 * fix #2587: Resolve VAD multithreading issue * Update funasr/models/fsmn_vad_streaming/model.py ok Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
82a07e2f6e
commit
5115a066c9
@ -652,10 +652,11 @@ class FsmnVADStreaming(nn.Module):
|
||||
key: list = None,
|
||||
tokenizer=None,
|
||||
frontend=None,
|
||||
cache: dict = {},
|
||||
cache: dict = None,
|
||||
**kwargs,
|
||||
):
|
||||
|
||||
if cache is None:
|
||||
cache = {}
|
||||
if len(cache) == 0:
|
||||
self.init_cache(cache, **kwargs)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user