Spaces:
Sleeping
Sleeping
Commit
·
22605df
1
Parent(s):
3eb3ce8
still trying to fix the tensor to float
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.tolist()
|
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())
|
37 |
|
38 |
st.markdown('## ')
|
39 |
uploaded_file1 = st.file_uploader("Choose a file: sentence list")
|