Spaces:
Runtime error
Runtime error
hacpdsae2023
commited on
Commit
·
665a998
1
Parent(s):
755eb55
fixed typo
Browse files
app.py
CHANGED
@@ -29,8 +29,8 @@ A = np.zeros((len(sentences),len(sentences)))
|
|
29 |
for i in range(len(sentences)):
|
30 |
for j in range(i):
|
31 |
st.write("{} \t\t {} \t\t Score: {:.4f}".format(sentences[i], sentences[j], cosine_scores[i][j]))
|
32 |
-
|
33 |
-
|
34 |
|
35 |
#G = nx.from_numpy_array(A)
|
36 |
G = nx.from_numpy_array(cosine_scores.numpy())
|
|
|
29 |
for i in range(len(sentences)):
|
30 |
for j in range(i):
|
31 |
st.write("{} \t\t {} \t\t Score: {:.4f}".format(sentences[i], sentences[j], cosine_scores[i][j]))
|
32 |
+
A[i][j] = cosine_scores[i][j]
|
33 |
+
A[j][i] = cosine_scores[i][j]
|
34 |
|
35 |
#G = nx.from_numpy_array(A)
|
36 |
G = nx.from_numpy_array(cosine_scores.numpy())
|