Spaces:
Running
Running
Update apps/similarity.py
Browse files- apps/similarity.py +1 -1
apps/similarity.py
CHANGED
@@ -24,4 +24,4 @@ def app():
|
|
24 |
#Compute cosine similarity between labels sentences and paragraphs
|
25 |
similarity_matrix = cosine_similarity(document_embeddings)
|
26 |
|
27 |
-
st.write("Text similarity:", similarity_matrix)
|
|
|
24 |
#Compute cosine similarity between labels sentences and paragraphs
|
25 |
similarity_matrix = cosine_similarity(document_embeddings)
|
26 |
|
27 |
+
st.write("Text similarity:", round(similarity_matrix[0][1]*100,2),"%")
|