Merge pull request #386 from alibaba-damo-academy/dev_sx

bug fix
This commit is contained in:
Lizerui9926 2023-04-20 11:38:45 +08:00 committed by GitHub
commit aa54e65287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ class SpeechText2Timestamp:
assert check_argument_types()
# 1. Build ASR model
tp_model, tp_train_args = ASRTask.build_model_from_file(
timestamp_infer_config, timestamp_model_file, device
timestamp_infer_config, timestamp_model_file, device=device
)
if 'cuda' in device:
tp_model = tp_model.cuda() # force model to cuda