Spaces:
Runtime error
Runtime error
liuwei
commited on
Commit
·
1878bd2
1
Parent(s):
3aa1ebd
init
Browse files
app.py
CHANGED
@@ -64,12 +64,13 @@ def app():
|
|
64 |
with st.container():
|
65 |
for sent, cos in embeddings.items():
|
66 |
col1, col2, col3 = st.columns(3)
|
|
|
67 |
with col1:
|
68 |
st.text(sent)
|
69 |
with col2:
|
70 |
-
bar = st.progress(
|
71 |
with col3:
|
72 |
-
st.text(
|
73 |
|
74 |
if button_clear:
|
75 |
st.session_state.inputs.clear()
|
|
|
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:
|
71 |
+
bar = st.progress(cos_value)
|
72 |
with col3:
|
73 |
+
st.text(cos_value)
|
74 |
|
75 |
if button_clear:
|
76 |
st.session_state.inputs.clear()
|