Kuaaangwen commited on
Commit
c996dc1
·
1 Parent(s): 3a19224

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -29,4 +29,8 @@ if submit_button:
29
 
30
  sentences.append(sentence_1)
31
  sentences.append(sentence_2)
32
- st.write(sentences)
 
 
 
 
 
29
 
30
  sentences.append(sentence_1)
31
  sentences.append(sentence_2)
32
+
33
+ st.write('Similarity between {} and {} is {}'.format(sentence_1,
34
+ sentence_2,
35
+ cosine_similarity(sentence_embeddings[0].reshape(1, -1),
36
+ sentence_embeddings[1].reshape(1, -1))[0][0]))