fix #2587: Resolve VAD multithreading issue (#2613)
* 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>
| | |
| | | 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) |
| | | |