Corey Morris commited on
Commit
6a7ad7c
1 Parent(s): 4fbdb10

Modified download CSV feature so that the index column now has a title of model name

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -36,6 +36,11 @@ filtered_data = filtered_data.sort_values(by=['MMLU_average'], ascending=False)
36
  st.dataframe(filtered_data[selected_columns])
37
 
38
  # CSV download
 
 
 
 
 
39
  csv = filtered_data.to_csv(index=True)
40
  st.download_button(
41
  label="Download data as CSV",
 
36
  st.dataframe(filtered_data[selected_columns])
37
 
38
  # CSV download
39
+ # name the index to include in the csv download
40
+
41
+
42
+ filtered_data.index.name = "Model Name"
43
+
44
  csv = filtered_data.to_csv(index=True)
45
  st.download_button(
46
  label="Download data as CSV",