Jimin Huang commited on
Commit
816e0df
1 Parent(s): 5621c81

feature: add auto evaluation tab

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -65,10 +65,13 @@ common_cols = list(set(cols) & set(cols_auto))
65
  # Merge dataframes and replace NaN values with an empty string
66
  merged_df = pd.merge(
67
  leaderboard_df, leaderboard_auto_df, how="outer", on=common_cols).fillna("")
 
 
 
 
 
68
  merged_cols = merged_df.columns
69
  merged_types = ["str"] + ["number"] * (len(merged_cols)-1)
70
- print (merged_cols)
71
- print (merged_df)
72
 
73
  # Constants
74
  TITLE = "Financial Natural Language Understanding and Prediction Evaluation Benchmark (FLARE) Leaderboard"
 
65
  # Merge dataframes and replace NaN values with an empty string
66
  merged_df = pd.merge(
67
  leaderboard_df, leaderboard_auto_df, how="outer", on=common_cols).fillna("")
68
+
69
+ merged_df = merged_df.sort_index(axis=1)
70
+
71
+ # Move 'key' column to the front
72
+ merged_df = merged_df[ ['Model'] + [ col for col in merged_df.columns if col != 'Model' ] ]
73
  merged_cols = merged_df.columns
74
  merged_types = ["str"] + ["number"] * (len(merged_cols)-1)
 
 
75
 
76
  # Constants
77
  TITLE = "Financial Natural Language Understanding and Prediction Evaluation Benchmark (FLARE) Leaderboard"