Spaces:
Runtime error
Runtime error
add cache
Browse files
app.py
CHANGED
@@ -208,7 +208,7 @@ def populate_session(dataset,model):
|
|
208 |
if "selected_slice" not in st.session_state:
|
209 |
st.session_state["selected_slice"] = None
|
210 |
|
211 |
-
@st.cache(
|
212 |
def read_file_to_df(file):
|
213 |
return pd.read_parquet(file)
|
214 |
|
@@ -278,6 +278,6 @@ if __name__ == "__main__":
|
|
278 |
# table_html = dataframe.to_html(
|
279 |
# columns=['content', 'label', 'pred', 'loss', 'cluster'], max_rows=50)
|
280 |
# table_html = table_html.replace("<th>", '<th align="left">') # left-align the headers
|
281 |
-
|
282 |
-
|
283 |
-
|
|
|
208 |
if "selected_slice" not in st.session_state:
|
209 |
st.session_state["selected_slice"] = None
|
210 |
|
211 |
+
@st.cache(allow_output_mutation=True)
|
212 |
def read_file_to_df(file):
|
213 |
return pd.read_parquet(file)
|
214 |
|
|
|
278 |
# table_html = dataframe.to_html(
|
279 |
# columns=['content', 'label', 'pred', 'loss', 'cluster'], max_rows=50)
|
280 |
# table_html = table_html.replace("<th>", '<th align="left">') # left-align the headers
|
281 |
+
st.write(dataframe,width=900, height=300)
|
282 |
+
with st.spinner(text='loading visualization...'):
|
283 |
+
quant_panel(merged)
|