diff --git a/sherpa-onnx/csrc/offline-recognizer-impl.cc b/sherpa-onnx/csrc/offline-recognizer-impl.cc index 319e104d0..5062968cc 100644 --- a/sherpa-onnx/csrc/offline-recognizer-impl.cc +++ b/sherpa-onnx/csrc/offline-recognizer-impl.cc @@ -214,7 +214,7 @@ std::unique_ptr OfflineRecognizerImpl::Create( if (!config.model_config.nemo_ctc.model.empty() || !config.model_config.zipformer_ctc.model.empty() || !config.model_config.tdnn.model.empty() || - !config.model_type.wenet_ctc.model.empty()) { + !config.model_config.wenet_ctc.model.empty()) { return std::make_unique(mgr, config); }