ludusc commited on
Commit
fdf081f
·
1 Parent(s): 30b8c04
Files changed (1) hide show
  1. pages/2_Concepts_comparison.py +1 -1
pages/2_Concepts_comparison.py CHANGED
@@ -158,7 +158,7 @@ with output_col_2:
158
  print(f'Similarity between {c1} and {c2}')
159
  similarity = cosine_similarity(vectors_CLIP[c1].reshape(1, -1), vectors_CLIP[c2].reshape(1, -1))
160
  print(np.round(similarity[0][0], 3))
161
- edges_clip.append((c1, c2, np.round(float(np.round(similarity[0][0], 3))), 3))
162
 
163
 
164
  net_clip = Network(height="750px", width="100%",)
 
158
  print(f'Similarity between {c1} and {c2}')
159
  similarity = cosine_similarity(vectors_CLIP[c1].reshape(1, -1), vectors_CLIP[c2].reshape(1, -1))
160
  print(np.round(similarity[0][0], 3))
161
+ edges_clip.append((c1, c2, np.round(float(np.round(similarity[0][0], 3)), 3)))
162
 
163
 
164
  net_clip = Network(height="750px", width="100%",)