Kuaaangwen commited on
Commit
2832187
·
1 Parent(s): fee5ced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ if submit_button:
33
  sentence_embeddings = model.encode(sentences)
34
 
35
 
36
- st.write('Similarity between {} and {} is {}'.format(sentence_1,
37
  sentence_2,
38
  cosine_similarity(sentence_embeddings[0].reshape(1, -1),
39
- sentence_embeddings[1].reshape(1, -1))[0][0]))
 
33
  sentence_embeddings = model.encode(sentences)
34
 
35
 
36
+ st.write('Similarity between *{}* and *{}* is *{}%*'.format(sentence_1,
37
  sentence_2,
38
  cosine_similarity(sentence_embeddings[0].reshape(1, -1),
39
+ sentence_embeddings[1].reshape(1, -1))[0][0]) * 100)