From 24e499c18121ba8df93a2be837e5b023c22b8922 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sun, 3 Nov 2024 19:21:06 +0800 Subject: [PATCH] Fix typos --- sherpa-onnx/csrc/offline-recognizer-impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"