Kuaaangwen commited on
Commit
5241bce
·
1 Parent(s): ea052a5

Update app.py

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