From 22b928dd3ff37ccee57ab2b5c2e4fcda4d33d24d Mon Sep 17 00:00:00 2001 From: Shi Xian <40013335+R1ckShi@users.noreply.github.com> Date: 星期四, 05 十二月 2024 19:30:30 +0800 Subject: [PATCH] Merge pull request #2269 from modelscope/dev_sx2 --- examples/industrial_data_pretraining/transducer/demo.py | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/industrial_data_pretraining/transducer/demo.py b/examples/industrial_data_pretraining/transducer/demo.py index 5a4aa42..0b3d638 100644 --- a/examples/industrial_data_pretraining/transducer/demo.py +++ b/examples/industrial_data_pretraining/transducer/demo.py @@ -7,8 +7,11 @@ # Transducer, BAT and RWKV_BAT models are just same to use, use the correct model_revision # https://modelscope.cn/models?name=transducer&page=1&tasks=auto-speech-recognition&type=audio -model = AutoModel(model="iic/speech_bat_asr-zh-cn-16k-aishell1-vocab4234-pytorch", - ) +model = AutoModel( + model="iic/speech_bat_asr-zh-cn-16k-aishell1-vocab4234-pytorch", +) -res = model.generate(input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav") -print(res) \ No newline at end of file +res = model.generate( + input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav" +) +print(res) -- Gitblit v1.9.1