Corey Morris commited on
Commit
546eedf
·
1 Parent(s): cee6ea9

limiting to moral_scenarios and moral_disputes for now

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -36,6 +36,9 @@ data = pd.merge(data1_df[column_name_1], data2_df[column_name_2], left_index=Tru
36
  # Transpose the dataframe to swap rows and columns
37
  data = data.transpose()
38
 
 
 
 
39
  def show_leaderboard():
40
  # Convert dataframe to html so that it can be displayed properly in Gradio
41
  return data.to_html()
 
36
  # Transpose the dataframe to swap rows and columns
37
  data = data.transpose()
38
 
39
+ # select only columns moral_scenarios and moral_disputes
40
+ data = data[['moral_scenarios', 'moral_disputes']]
41
+
42
  def show_leaderboard():
43
  # Convert dataframe to html so that it can be displayed properly in Gradio
44
  return data.to_html()