Fixed some typos in the error message

This commit is contained in:
Kinar 2023-11-07 07:26:57 -08:00
parent b0725b46fb
commit 60fcfa74cc
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ int CppTextEmbedderCosineSimilarity(const Embedding& u, const Embedding& v,
if (status_or_similarity.ok()) { if (status_or_similarity.ok()) {
*similarity = status_or_similarity.value(); *similarity = status_or_similarity.value();
} else { } else {
ABSL_LOG(ERROR) << "Cannot computer cosine similarity."; ABSL_LOG(ERROR) << "Cannot compute cosine similarity.";
return CppProcessError(status_or_similarity.status(), error_msg); return CppProcessError(status_or_similarity.status(), error_msg);
} }
return 0; return 0;

View File

@ -244,7 +244,7 @@ int CppImageEmbedderCosineSimilarity(const Embedding& u, const Embedding& v,
if (status_or_similarity.ok()) { if (status_or_similarity.ok()) {
*similarity = status_or_similarity.value(); *similarity = status_or_similarity.value();
} else { } else {
ABSL_LOG(ERROR) << "Cannot computer cosine similarity."; ABSL_LOG(ERROR) << "Cannot compute cosine similarity.";
return CppProcessError(status_or_similarity.status(), error_msg); return CppProcessError(status_or_similarity.status(), error_msg);
} }
return 0; return 0;