From 4b22a252a2a0bfe4d7c251f393e1a336725b594a Mon Sep 17 00:00:00 2001
From: lingyunfly <121302812+lingyunfly@users.noreply.github.com>
Date: 星期二, 14 三月 2023 13:19:24 +0800
Subject: [PATCH] Update infer.py
---
funasr/punctuation/abs_model.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/funasr/punctuation/abs_model.py b/funasr/punctuation/abs_model.py
index 5f6afb7..404d5e8 100644
--- a/funasr/punctuation/abs_model.py
+++ b/funasr/punctuation/abs_model.py
@@ -25,3 +25,7 @@
@abstractmethod
def forward(self, input: torch.Tensor, hidden: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
raise NotImplementedError
+
+ @abstractmethod
+ def with_vad(self) -> bool:
+ raise NotImplementedError
--
Gitblit v1.9.1