Spaces:
Runtime error
Runtime error
hacpdsae2023
commited on
Commit
·
755eb55
1
Parent(s):
1154940
fix typo
Browse filesnp.zeroes -> np.zeros
app.py
CHANGED
@@ -23,7 +23,7 @@ embeddings = model.encode(sentences, convert_to_tensor=True)
|
|
23 |
cosine_scores = util.cos_sim(embeddings, embeddings)
|
24 |
|
25 |
# creating adjacency matrix
|
26 |
-
A = np.
|
27 |
|
28 |
#Output the pairs with their score
|
29 |
for i in range(len(sentences)):
|
|
|
23 |
cosine_scores = util.cos_sim(embeddings, embeddings)
|
24 |
|
25 |
# creating adjacency matrix
|
26 |
+
A = np.zeros((len(sentences),len(sentences)))
|
27 |
|
28 |
#Output the pairs with their score
|
29 |
for i in range(len(sentences)):
|