Skip to content

Commit

Permalink
Fix test_audio error (PaddlePaddle#372)
Browse files Browse the repository at this point in the history
Change whisper model to conformer_u2pp_online_wenetspeech in
audio-to-Caption and audio_chat tests.
  • Loading branch information
essos-bot authored Jan 2, 2024
1 parent 34650f5 commit 3a30d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/appflow/test_audio-to-Caption.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def create_test(name, static_mode):
def test_audio2caption(self):

paddle.seed(1024)
task = Appflow(app="audio2caption", models=["whisper", "THUDM/chatglm-6b"])
task = Appflow(app="audio2caption", models=["conformer_u2pp_online_wenetspeech", "THUDM/chatglm-6b"])
audio_file_url = "https://bj.bcebos.com/v1/paddlenlp/models/community/paddlemix/appflow/test/test_audio/zh.wav"

prompt = (
Expand Down
2 changes: 1 addition & 1 deletion tests/appflow/test_audio_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def create_test(name, static_mode):
def test_audio_chat(self):

paddle.seed(1024)
task = Appflow(app="audio_chat", models=["whisper", "THUDM/chatglm-6b", "speech"])
task = Appflow(app="audio_chat", models=["conformer_u2pp_online_wenetspeech", "THUDM/chatglm-6b", "speech"])
audio_file_url = "https://bj.bcebos.com/v1/paddlenlp/models/community/paddlemix/appflow/test/test_audio/zh.wav"

prompt = (
Expand Down

0 comments on commit 3a30d15

Please sign in to comment.