hacpdsae2023 commited on
Commit
665a998
·
1 Parent(s): 755eb55

fixed typo

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- M[i][j] = cosine_scores[i][j]
33
- M[j][i] = cosine_scores[i][j]
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())