游雁
2024-04-29 2779602177ae5374547c7a7e17de0b11a166326d
examples/industrial_data_pretraining/qwen_audio/demo_chat.py
@@ -12,7 +12,7 @@
audio_in = "https://github.com/QwenLM/Qwen-Audio/raw/main/assets/audio/1272-128104-0000.flac"
# 1st dialogue turn
prompt = 'what does the person say?'
prompt = "what does the person say?"
cache = {"history": None}
res = model.generate(input=audio_in, prompt=prompt, cache=cache)
print(res)
@@ -22,4 +22,3 @@
prompt = 'Find the start time and end time of the word "middle classes"'
res = model.generate(input=None, prompt=prompt, cache=cache)
print(res)