Fixed some typos in the error message
This commit is contained in:
parent
b0725b46fb
commit
60fcfa74cc
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user