From 90bc3ad02eee3745188be3960036ae3e9e746049 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 15 四月 2024 15:35:06 +0800
Subject: [PATCH] bugfix

---
 funasr/models/sense_voice/model.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/funasr/models/sense_voice/model.py b/funasr/models/sense_voice/model.py
index f8c1177..242664b 100644
--- a/funasr/models/sense_voice/model.py
+++ b/funasr/models/sense_voice/model.py
@@ -96,9 +96,9 @@
         options = whisper.DecodingOptions(**DecodingOptions)
         
         result = whisper.decode(self.model, speech, options)
-
+        text = f"{result.text}\n"
         results = []
-        result_i = {"key": key[0], "text": result.text}
+        result_i = {"key": key[0], "text": text}
 
         results.append(result_i)
     

--
Gitblit v1.9.1