hacpdsae2023 commited on
Commit
f1aa832
·
1 Parent(s): 151e5ca

fix bug on print vs write

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ cosine_scores = util.cos_sim(embeddings1, embeddings2)
28
 
29
  #Output the pairs with their score
30
  for i in range(len(sentences1)):
31
- print("{} \t\t {} \t\t Score: {:.4f}".format(sentences1[i], sentences2[i], cosine_scores[i][i]))
32
 
33
 
34
  #-------------------------------------------------------------
 
28
 
29
  #Output the pairs with their score
30
  for i in range(len(sentences1)):
31
+ st.write("{} \t\t {} \t\t Score: {:.4f}".format(sentences1[i], sentences2[i], cosine_scores[i][i]))
32
 
33
 
34
  #-------------------------------------------------------------