From bea5d984233aae08d7b9f6a3e8a3f309fae581ad Mon Sep 17 00:00:00 2001
From: dingbig <dingbig@gmail.com>
Date: 星期三, 22 二月 2023 19:48:50 +0800
Subject: [PATCH] Add sentence timestamp support

---
 egs_modelscope/lm/speech_transformer_lm_zh-cn-common-vocab8404-pytorch/infer.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/egs_modelscope/lm/speech_transformer_lm_zh-cn-common-vocab8404-pytorch/infer.py b/egs_modelscope/lm/speech_transformer_lm_zh-cn-common-vocab8404-pytorch/infer.py
index ed3b7e2..ec309b2 100644
--- a/egs_modelscope/lm/speech_transformer_lm_zh-cn-common-vocab8404-pytorch/infer.py
+++ b/egs_modelscope/lm/speech_transformer_lm_zh-cn-common-vocab8404-pytorch/infer.py
@@ -7,7 +7,7 @@
 from modelscope.utils.constant import Tasks
 
 inference_pipline = pipeline(
-    task=Tasks.language_model,
+    task=Tasks.language_score_prediction,
     model='damo/speech_transformer_lm_zh-cn-common-vocab8404-pytorch',
     output_dir="./tmp/"
 )

--
Gitblit v1.9.1