zhaorui-nb
commited on
Commit
·
c34e192
1
Parent(s):
b8a7dc4
fix detial resault dataframe
Browse files
app.py
CHANGED
@@ -97,11 +97,11 @@ try:
|
|
97 |
col_detial = st.columns(len(det_ind))
|
98 |
for i, dind in enumerate(det_ind):
|
99 |
with col_detial[i]:
|
100 |
-
dis = f"{
|
101 |
color = [st.success, st.info, st.warning, st.error]
|
102 |
color[i % 4](dis)
|
103 |
|
104 |
-
dic = json.loads(
|
105 |
dt_df = pd.DataFrame(dic).T
|
106 |
st.dataframe(dt_df)
|
107 |
|
|
|
97 |
col_detial = st.columns(len(det_ind))
|
98 |
for i, dind in enumerate(det_ind):
|
99 |
with col_detial[i]:
|
100 |
+
dis = f"{filtered_df.iloc[dind]['model name']}___{filtered_df.iloc[dind]['dataset']}___{filtered_df.iloc[dind]['method']}"
|
101 |
color = [st.success, st.info, st.warning, st.error]
|
102 |
color[i % 4](dis)
|
103 |
|
104 |
+
dic = json.loads(filtered_df.iloc[dind]['detail result'])
|
105 |
dt_df = pd.DataFrame(dic).T
|
106 |
st.dataframe(dt_df)
|
107 |
|