From c0b186b5b6e950472920964932ba3de546e06dbf Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期五, 12 一月 2024 22:48:30 +0800
Subject: [PATCH] funasr1.0 streaming

---
 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