From b9cfd9953a88db445e3fd499d9fc40d713672152 Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 28 二月 2024 20:44:21 +0800
Subject: [PATCH] Dev gzf (#1402)
---
funasr/models/llm_asr_nar/model.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/funasr/models/llm_asr_nar/model.py b/funasr/models/llm_asr_nar/model.py
index a61190c..6a4ecce 100644
--- a/funasr/models/llm_asr_nar/model.py
+++ b/funasr/models/llm_asr_nar/model.py
@@ -315,7 +315,7 @@
model_outputs = self.llm(inputs_embeds=inputs_embeds, attention_mask=attention_mask, labels=None)
preds = torch.argmax(model_outputs.logits, -1)
text = tokenizer.batch_decode(preds, add_special_tokens=False, skip_special_tokens=True)
- text = text.split(': "\n')[-1]
+ text = text[0].split(': \n')[-1]
# preds = torch.argmax(model_outputs.logits, -1)
ibest_writer = None
--
Gitblit v1.9.1