Spaces:
Runtime error
Runtime error
Commit
·
1750d29
1
Parent(s):
b1d589a
Update app.py
Browse files
app.py
CHANGED
@@ -31,11 +31,8 @@ if submit_button:
|
|
31 |
sentences.append(sentence_2)
|
32 |
|
33 |
for sentence, embedding in zip(sentences, sentence_embeddings):
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
|
38 |
-
|
39 |
-
sentence_2,
|
40 |
-
cosine_similarity(sentence_embeddings[0].reshape(1, -1),
|
41 |
-
sentence_embeddings[1].reshape(1, -1))[0][0]))
|
|
|
31 |
sentences.append(sentence_2)
|
32 |
|
33 |
for sentence, embedding in zip(sentences, sentence_embeddings):
|
34 |
+
st.write("Sentence:", sentence)
|
35 |
+
st.write("Embedding:", embedding)
|
36 |
+
st.write("")
|
37 |
|
38 |
+
|
|
|
|
|
|