Fix building (#1508)

This commit is contained in:
Fangjun Kuang
2024-11-03 19:47:04 +08:00
committed by GitHub
parent f0cced1f37
commit 6ee8c99c5d
3 changed files with 6 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ std::unique_ptr<OfflineRecognizerImpl> 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"