Spaces:
Runtime error
Runtime error
Commit
·
f1aa832
1
Parent(s):
151e5ca
fix bug on print vs write
Browse files
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 |
-
|
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 |
#-------------------------------------------------------------
|