aky15
2023-07-20 97c617854ee802e0bf83fe903c38f1eb52c892bc
remove from_pretrained (#754)

Co-authored-by: aky15 <ankeyu.aky@11.17.44.249>
1个文件已修改
5 ■■■■ 已修改文件
funasr/bin/asr_inference_launch.py 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/bin/asr_inference_launch.py
@@ -1371,10 +1371,7 @@
        left_context=left_context,
        right_context=right_context,
    )
    speech2text = Speech2TextTransducer.from_pretrained(
        model_tag=model_tag,
        **speech2text_kwargs,
    )
    speech2text = Speech2TextTransducer(**speech2text_kwargs)
    def _forward(data_path_and_name_and_type,
                 raw_inputs: Union[np.ndarray, torch.Tensor] = None,