Spaces:
Sleeping
Sleeping
Commit
·
3eb3ce8
1
Parent(s):
6f9f902
still trying to fix the tensor to float: this time tolist()
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ embedding_input_topic = model.encode(input_topic)
|
|
33 |
|
34 |
cos_scores = util.cos_sim(embedding_input_topic, embedding_sentence)[0][0]
|
35 |
|
36 |
-
st.write('Score for topic', input_topic, ':', cos_scores.
|
37 |
|
38 |
st.markdown('## ')
|
39 |
uploaded_file1 = st.file_uploader("Choose a file: sentence list")
|
|
|
33 |
|
34 |
cos_scores = util.cos_sim(embedding_input_topic, embedding_sentence)[0][0]
|
35 |
|
36 |
+
st.write('Score for topic', input_topic, ':', cos_scores.tolist()[0])
|
37 |
|
38 |
st.markdown('## ')
|
39 |
uploaded_file1 = st.file_uploader("Choose a file: sentence list")
|