From 5023dd04224eddd4c9a047bd946695c3932743ae Mon Sep 17 00:00:00 2001 From: zhifu gao <zhifu.gzf@alibaba-inc.com> Date: 星期五, 15 三月 2024 16:24:29 +0800 Subject: [PATCH] Dev gzf llm (#1503) --- examples/industrial_data_pretraining/whisper/demo_from_openai.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/examples/industrial_data_pretraining/whisper/demo_from_openai.py b/examples/industrial_data_pretraining/whisper/demo_from_openai.py index 2ee8ad5..5cac06b 100644 --- a/examples/industrial_data_pretraining/whisper/demo_from_openai.py +++ b/examples/industrial_data_pretraining/whisper/demo_from_openai.py @@ -10,10 +10,11 @@ # model = AutoModel(model="Whisper-small", hub="openai") # model = AutoModel(model="Whisper-medium", hub="openai") # model = AutoModel(model="Whisper-large-v2", hub="openai") -model = AutoModel(model="Whisper-large-v3", hub="openai") +model = AutoModel(model="Whisper-large-v3", hub="openai", vad_model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch",) res = model.generate( language=None, task="transcribe", + batch_size_s=0, input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav") print(res) -- Gitblit v1.9.1