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

---
 funasr/models/sense_voice/model.py                          |    2 +-
 examples/industrial_data_pretraining/paraformer/finetune.sh |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/examples/industrial_data_pretraining/paraformer/finetune.sh b/examples/industrial_data_pretraining/paraformer/finetune.sh
index fe511ff..9467a0b 100644
--- a/examples/industrial_data_pretraining/paraformer/finetune.sh
+++ b/examples/industrial_data_pretraining/paraformer/finetune.sh
@@ -10,7 +10,6 @@
 
 ## option 1, download model automatically
 model_name_or_model_dir="iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch"
-model_name_or_model_dir="iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch"
 
 ## option 2, download model by git
 #local_path_root=${workspace}/modelscope_models
diff --git a/funasr/models/sense_voice/model.py b/funasr/models/sense_voice/model.py
index 242664b..4ee2fa5 100644
--- a/funasr/models/sense_voice/model.py
+++ b/funasr/models/sense_voice/model.py
@@ -96,7 +96,7 @@
         options = whisper.DecodingOptions(**DecodingOptions)
         
         result = whisper.decode(self.model, speech, options)
-        text = f"{result.text}\n"
+        text = f"{result.text}"
         results = []
         result_i = {"key": key[0], "text": text}
 

--
Gitblit v1.9.1