Update device usage.

pull/1048/head
KP 3 years ago
parent 000294132c
commit 1707244472

@ -6,4 +6,4 @@
`paddlespeech help`
## ASR
`paddlespeech asr --input ./test_audio.wav --device gpu`
`paddlespeech asr --input ./test_audio.wav`

@ -87,7 +87,7 @@ class ASRExecutor(BaseExecutor):
self.parser.add_argument(
'--device',
type=str,
default='cpu',
default=paddle.get_device(),
help='Choose device to execute model inference.')
def _get_pretrained_path(self, tag: str) -> os.PathLike:

Loading…
Cancel
Save