diff --git a/sherpa-onnx/csrc/offline-recognizer-impl.cc b/sherpa-onnx/csrc/offline-recognizer-impl.cc index f89bb9bec..99c41d307 100644 --- a/sherpa-onnx/csrc/offline-recognizer-impl.cc +++ b/sherpa-onnx/csrc/offline-recognizer-impl.cc @@ -123,7 +123,7 @@ std::unique_ptr OfflineRecognizerImpl::Create( auto model_type = LookupCustomModelMetaData(meta_data, "model_type", allocator); - if (!model_type.empty()) { + if (model_type.empty()) { SHERPA_ONNX_LOGE( "No model_type in the metadata!\n\n" "Please refer to the following URLs to add metadata"