Skip to content

Commit 9a8b0ff

Browse files
Remove comments as suggested
Co-authored-by: vb <[email protected]>
1 parent 6d2887b commit 9a8b0ff

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -722,14 +722,11 @@ export const sentenceTransformers = (model: ModelData): string[] => {
722722
return [
723723
`from sentence_transformers import SentenceTransformer
724724
725-
# Download from the 🤗 Hub
726725
model = SentenceTransformer("${model.id}"${remote_code_snippet})
727726
728-
# Run inference
729727
texts = ${JSON.stringify(exampleSentences, null, 4)}
730728
embeddings = model.encode(texts)
731729
732-
# Get the similarity scores for the texts
733730
similarities = model.similarity(embeddings, embeddings)
734731
print(similarities.shape)
735732
# [${exampleSentences.length}, ${exampleSentences.length}]`,

0 commit comments

Comments
 (0)