add ContextualParaformer

This commit is contained in:
北念 2023-02-09 20:08:44 +08:00
parent 5231b54af8
commit 212b20d47f

View File

@ -428,6 +428,7 @@ def inference_modelscope(
format="%(asctime)s (%(module)s:%(lineno)d) %(levelname)s: %(message)s",
)
hotword_list_or_file = param_dict['hotword']
if ngpu >= 1 and torch.cuda.is_available():
device = "cuda"
else: