chrissoria commited on
Commit
caa12e0
·
1 Parent(s): 7150871

Simplify results display: hide technical columns, add multi-label note

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -1193,9 +1193,13 @@ with col_output:
1193
  # Distribution chart
1194
  fig = create_distribution_chart(results['df'], results['categories'])
1195
  st.pyplot(fig)
 
1196
 
1197
- # Results dataframe
1198
- st.dataframe(results['df'], use_container_width=True)
 
 
 
1199
 
1200
  # Downloads
1201
  col_dl1, col_dl2 = st.columns(2)
 
1193
  # Distribution chart
1194
  fig = create_distribution_chart(results['df'], results['categories'])
1195
  st.pyplot(fig)
1196
+ st.caption("Note: Categories are not mutually exclusive—each item can belong to multiple categories.")
1197
 
1198
+ # Results dataframe (hide technical columns from display)
1199
+ display_df = results['df'].copy()
1200
+ cols_to_hide = ['model_response', 'json', 'raw_response', 'raw_json']
1201
+ display_df = display_df.drop(columns=[c for c in cols_to_hide if c in display_df.columns])
1202
+ st.dataframe(display_df, use_container_width=True)
1203
 
1204
  # Downloads
1205
  col_dl1, col_dl2 = st.columns(2)