From 1bb9a04aef1e6bde623aab884823d88127e8485a Mon Sep 17 00:00:00 2001 From: KP <109694228@qq.com> Date: Mon, 21 Feb 2022 00:08:14 +0800 Subject: [PATCH] Update batch input and stdin input. --- demos/audio_tagging/README.md | 2 +- demos/audio_tagging/README_cn.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/audio_tagging/README.md b/demos/audio_tagging/README.md index d679ea54e..9d4af0be6 100644 --- a/demos/audio_tagging/README.md +++ b/demos/audio_tagging/README.md @@ -65,7 +65,7 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/cat.wav https://paddlespe config=None, # Set `config` and `ckpt_path` to None to use pretrained model. label_file=None, ckpt_path=None, - input_file='./cat.wav', + audio_file='./cat.wav', topk=10, device=paddle.get_device()) print('CLS Result: \n{}'.format(result)) diff --git a/demos/audio_tagging/README_cn.md b/demos/audio_tagging/README_cn.md index bd94dd588..79f87bf8c 100644 --- a/demos/audio_tagging/README_cn.md +++ b/demos/audio_tagging/README_cn.md @@ -65,7 +65,7 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/cat.wav https://paddlespe config=None, # Set `config` and `ckpt_path` to None to use pretrained model. label_file=None, ckpt_path=None, - input_file='./cat.wav', + audio_file='./cat.wav', topk=10, device=paddle.get_device()) print('CLS Result: \n{}'.format(result))