peter2000 commited on
Commit
65131af
1 Parent(s): 3ddbd4c

Update apps/similarity.py

Browse files
Files changed (1) hide show
  1. 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),"%")