游雁
2024-03-18 322f3d5ab9bf7c64359d3a5e50dac1d9f7de4534
examples/industrial_data_pretraining/qwen_audio/demo_chat_from_local.py
@@ -7,7 +7,7 @@
from funasr import AutoModel
model = AutoModel(model="Qwen/Qwen-Audio-Chat",
model = AutoModel(model="Qwen-Audio-Chat",
                  model_path="/nfs/zhifu.gzf/init_model/qwen/Qwen-Audio-Chat",
                  )
@@ -19,8 +19,9 @@
res = model.generate(input=audio_in, prompt=prompt, cache=cache)
print(res)
prompt = 'Find the start time and end time of the word "middle classes"'
# 2nd dialogue turn
prompt = 'Find the start time and end time of the word "middle classes"'
res = model.generate(input=None, prompt=prompt, cache=cache)
print(res)