Kuaaangwen commited on
Commit
b1d589a
1 Parent(s): c996dc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -30,6 +30,11 @@ if submit_button:
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),
 
30
  sentences.append(sentence_1)
31
  sentences.append(sentence_2)
32
 
33
+ for sentence, embedding in zip(sentences, sentence_embeddings):
34
+ print("Sentence:", sentence)
35
+ print("Embedding:", embedding)
36
+ print("")
37
+
38
  st.write('Similarity between {} and {} is {}'.format(sentence_1,
39
  sentence_2,
40
  cosine_similarity(sentence_embeddings[0].reshape(1, -1),