Update README.md
Browse files
README.md
CHANGED
@@ -58,4 +58,5 @@ with torch.no_grad():
|
|
58 |
embeddings = model(**encoded).pooler_output
|
59 |
|
60 |
# Compute similarity
|
61 |
-
similarity = torch.nn.functional.cosine_similarity(embeddings[0], embeddings[1], dim=0)
|
|
|
|
58 |
embeddings = model(**encoded).pooler_output
|
59 |
|
60 |
# Compute similarity
|
61 |
+
similarity = torch.nn.functional.cosine_similarity(embeddings[0], embeddings[1], dim=0)
|
62 |
+
```
|