From dcc310e1a8ff75df5b8d091a9e26883b85b8afec Mon Sep 17 00:00:00 2001
From: Yabin Li <wucong.lyb@alibaba-inc.com>
Date: 星期三, 17 一月 2024 16:22:07 +0800
Subject: [PATCH] Update websocket_protocol_zh.md
---
funasr/frontends/wav_frontend.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/funasr/frontends/wav_frontend.py b/funasr/frontends/wav_frontend.py
index f410085..9c896f1 100644
--- a/funasr/frontends/wav_frontend.py
+++ b/funasr/frontends/wav_frontend.py
@@ -402,8 +402,7 @@
self, input: torch.Tensor, input_lengths: torch.Tensor, cache: dict = {}, **kwargs
):
is_final = kwargs.get("is_final", False)
- reset = kwargs.get("reset", False)
- if len(cache) == 0 or reset:
+ if len(cache) == 0:
self.init_cache(cache)
batch_size = input.shape[0]
--
Gitblit v1.9.1