We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e0250a commit 53a59e2Copy full SHA for 53a59e2
1 file changed
apps/text-embeddings/app/clip-embeddings/index.tsx
@@ -97,7 +97,7 @@ function ClipEmbeddingsScreen() {
97
similarity: dotProduct(imageEmbedding, textEmbedding),
98
});
99
}
100
- setTextEmbeddingTime(Date.now() - txtStart);
+ setTextEmbeddingTime(Math.round((Date.now() - txtStart) / labels.length));
101
102
scored.sort((a, b) => b.similarity - a.similarity);
103
setResults(scored);
0 commit comments