Spaces:
Runtime error
Runtime error
viz
Browse files- app.py +2 -1
- error_analysis/utils/style_hacks.py +6 -3
app.py
CHANGED
@@ -85,7 +85,7 @@ def data_comparison(df):
|
|
85 |
y=alt.Y('slice:N', axis=alt.Axis(orient='left'), title=""),
|
86 |
x=alt.X("label"),
|
87 |
shape=alt.Shape('label', scale=alt.Scale(
|
88 |
-
range=['circle', 'diamond']), legend=
|
89 |
color=color
|
90 |
).add_selection(
|
91 |
selection
|
@@ -214,6 +214,7 @@ if __name__ == "__main__":
|
|
214 |
)
|
215 |
### LOAD DATA AND SESSION VARIABLES ###
|
216 |
data_df = pd.read_parquet('./assets/data/amazon_polarity.test.parquet')
|
|
|
217 |
embedding_umap = data_df[['x','y']]
|
218 |
if "user_data" not in st.session_state:
|
219 |
st.session_state["user_data"] = data_df
|
|
|
85 |
y=alt.Y('slice:N', axis=alt.Axis(orient='left'), title=""),
|
86 |
x=alt.X("label"),
|
87 |
shape=alt.Shape('label', scale=alt.Scale(
|
88 |
+
range=['circle', 'diamond']), legend=None),
|
89 |
color=color
|
90 |
).add_selection(
|
91 |
selection
|
|
|
214 |
)
|
215 |
### LOAD DATA AND SESSION VARIABLES ###
|
216 |
data_df = pd.read_parquet('./assets/data/amazon_polarity.test.parquet')
|
217 |
+
data_df.reset_index(drop=True, inplace=True)
|
218 |
embedding_umap = data_df[['x','y']]
|
219 |
if "user_data" not in st.session_state:
|
220 |
st.session_state["user_data"] = data_df
|
error_analysis/utils/style_hacks.py
CHANGED
@@ -5,13 +5,13 @@ import streamlit as st
|
|
5 |
|
6 |
|
7 |
def init_style():
|
8 |
-
return st.
|
9 |
"""
|
10 |
<style>
|
11 |
/* Side Bar */
|
12 |
-
.
|
13 |
background-color:rgb(254 244 219);
|
14 |
-
width:
|
15 |
padding:10px 10px 10px 10px;
|
16 |
}
|
17 |
/* Main Panel*/
|
@@ -61,6 +61,9 @@ def init_style():
|
|
61 |
border-radius: 50px;
|
62 |
}
|
63 |
|
|
|
|
|
|
|
64 |
</style>
|
65 |
""",
|
66 |
unsafe_allow_html=True,
|
|
|
5 |
|
6 |
|
7 |
def init_style():
|
8 |
+
return st.markdown(
|
9 |
"""
|
10 |
<style>
|
11 |
/* Side Bar */
|
12 |
+
.sidebar .sidebar-content {
|
13 |
background-color:rgb(254 244 219);
|
14 |
+
width:10rem;
|
15 |
padding:10px 10px 10px 10px;
|
16 |
}
|
17 |
/* Main Panel*/
|
|
|
61 |
border-radius: 50px;
|
62 |
}
|
63 |
|
64 |
+
tbody th {display:none}
|
65 |
+
.blank {display:none}
|
66 |
+
|
67 |
</style>
|
68 |
""",
|
69 |
unsafe_allow_html=True,
|