mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
qwenaudio qwenaudiochat
This commit is contained in:
parent
88db342d7c
commit
9c2ff37ae9
@ -7,9 +7,7 @@
|
||||
|
||||
from funasr import AutoModel
|
||||
|
||||
model = AutoModel(model="Qwen-Audio",
|
||||
model_path=None,
|
||||
)
|
||||
model = AutoModel(model="Qwen-Audio")
|
||||
|
||||
res = model.generate(input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav", language=None)
|
||||
print(res)
|
||||
|
||||
@ -7,9 +7,7 @@
|
||||
|
||||
from funasr import AutoModel
|
||||
|
||||
model = AutoModel(model="Qwen-Audio-Chat",
|
||||
model_path=None,
|
||||
)
|
||||
model = AutoModel(model="Qwen-Audio-Chat")
|
||||
|
||||
audio_in = "https://github.com/QwenLM/Qwen-Audio/raw/main/assets/audio/1272-128104-0000.flac"
|
||||
|
||||
@ -19,8 +17,9 @@ cache = {"history": None}
|
||||
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)
|
||||
|
||||
|
||||
@ -19,8 +19,9 @@ cache = {"history": None}
|
||||
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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user