liuwei commited on
Commit
aae7962
·
1 Parent(s): 1878bd2
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -64,7 +64,8 @@ def app():
64
  with st.container():
65
  for sent, cos in embeddings.items():
66
  col1, col2, col3 = st.columns(3)
67
- cos_value = float(cos.split('(')[1].split(')')[0])
 
68
  with col1:
69
  st.text(sent)
70
  with col2:
 
64
  with st.container():
65
  for sent, cos in embeddings.items():
66
  col1, col2, col3 = st.columns(3)
67
+ st.write(type(cos))
68
+ cos_value = cos.item()
69
  with col1:
70
  st.text(sent)
71
  with col2: