From e175dae50b1346aa0abf481808862f43b3f5b2e4 Mon Sep 17 00:00:00 2001
From: Anjali Barge <bargeanjali650@gmail.com>
Date: 星期六, 20 九月 2025 22:39:57 +0800
Subject: [PATCH] examples: add improved batch_asr CLI example with error handling (#2675)

---
 funasr/models/fsmn_vad_streaming/model.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/funasr/models/fsmn_vad_streaming/model.py b/funasr/models/fsmn_vad_streaming/model.py
index bfffca8..f62e36a 100644
--- a/funasr/models/fsmn_vad_streaming/model.py
+++ b/funasr/models/fsmn_vad_streaming/model.py
@@ -652,10 +652,11 @@
         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)
 

--
Gitblit v1.9.1