Spaces:
Runtime error
Runtime error
float
Browse files
pages/2_Concepts_comparison.py
CHANGED
@@ -157,7 +157,7 @@ with output_col_2:
|
|
157 |
print(f'Similarity between {c1} and {c2}')
|
158 |
similarity = cosine_similarity(vectors[c1].reshape(1, -1), vectors[c2].reshape(1, -1))
|
159 |
print(np.round(similarity[0][0], 3))
|
160 |
-
edges_clip.append((c1, c2, np.round(similarity[0][0], 3)))
|
161 |
|
162 |
|
163 |
net_clip = Network(height="750px", width="100%",)
|
|
|
157 |
print(f'Similarity between {c1} and {c2}')
|
158 |
similarity = cosine_similarity(vectors[c1].reshape(1, -1), vectors[c2].reshape(1, -1))
|
159 |
print(np.round(similarity[0][0], 3))
|
160 |
+
edges_clip.append((c1, c2, float(np.round(similarity[0][0], 3))))
|
161 |
|
162 |
|
163 |
net_clip = Network(height="750px", width="100%",)
|