Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def main():
|
|
76 |
text_input2 = st.text_input('Enter non-standard text here:', key=f'ugc{i}', value=sample_ugc[i], label_visibility='collapsed')
|
77 |
ugc_text_inputs.append(text_input2)
|
78 |
|
79 |
-
st.caption('*The models are case-insensitive: all
|
80 |
|
81 |
st.form_submit_button('Compute')
|
82 |
|
@@ -100,15 +100,15 @@ def main():
|
|
100 |
outputs['cos'] = np.concatenate([X_cos_laser, X_cos_rolaser, X_cos_c_rolaser])
|
101 |
|
102 |
st.header('Cosine Distance Scores')
|
103 |
-
st.caption('*This
|
104 |
fig = px.bar(outputs, x='pair', y='cos', color='model', barmode='group', hover_data=['ugc', 'std'])
|
105 |
fig.update_xaxes(title_text='Text Input Pair')
|
106 |
fig.update_yaxes(title_text='Cosine Distance')
|
107 |
st.plotly_chart(fig, use_container_width=True)
|
108 |
|
109 |
st.header('Average Cosine Distance Scores')
|
110 |
-
st.caption('*This
|
111 |
-
fig = px.box(outputs, x='model', y='cos', color='model')
|
112 |
fig.update_xaxes(title_text='Model')
|
113 |
fig.update_yaxes(title_text='Cosine Distance')
|
114 |
st.plotly_chart(fig, use_container_width=True)
|
|
|
76 |
text_input2 = st.text_input('Enter non-standard text here:', key=f'ugc{i}', value=sample_ugc[i], label_visibility='collapsed')
|
77 |
ugc_text_inputs.append(text_input2)
|
78 |
|
79 |
+
st.caption('*The models are case-insensitive: all texts will be lowercased.*')
|
80 |
|
81 |
st.form_submit_button('Compute')
|
82 |
|
|
|
100 |
outputs['cos'] = np.concatenate([X_cos_laser, X_cos_rolaser, X_cos_c_rolaser])
|
101 |
|
102 |
st.header('Cosine Distance Scores')
|
103 |
+
st.caption('*This bar plot is interactive: Hover on the bars to display values. Click on the legend items to filter models.*')
|
104 |
fig = px.bar(outputs, x='pair', y='cos', color='model', barmode='group', hover_data=['ugc', 'std'])
|
105 |
fig.update_xaxes(title_text='Text Input Pair')
|
106 |
fig.update_yaxes(title_text='Cosine Distance')
|
107 |
st.plotly_chart(fig, use_container_width=True)
|
108 |
|
109 |
st.header('Average Cosine Distance Scores')
|
110 |
+
st.caption('*This box plot is interactive: Hover on the boxes to display values. Click on the legend items to filter models.*')
|
111 |
+
fig = px.box(outputs, x='model', y='cos', color='model', boxmean=True)
|
112 |
fig.update_xaxes(title_text='Model')
|
113 |
fig.update_yaxes(title_text='Cosine Distance')
|
114 |
st.plotly_chart(fig, use_container_width=True)
|