Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ 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')
|
@@ -108,7 +108,10 @@ def main():
|
|
108 |
|
109 |
st.header('Average Cosine Distance Scores')
|
110 |
st.caption('*This data table is interactive: Click on a column header to sort values.*')
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
113 |
if __name__ == "__main__":
|
114 |
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 box plot is interactive: Hover on the boxes 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')
|
|
|
108 |
|
109 |
st.header('Average Cosine Distance Scores')
|
110 |
st.caption('*This data table is interactive: Click on a column header to sort values.*')
|
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)
|
115 |
+
|
116 |
if __name__ == "__main__":
|
117 |
main()
|