atticusg commited on
Commit
d788e14
·
verified ·
1 Parent(s): 0ef3fb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -117,16 +117,12 @@ def init_leaderboard_mib(dataframe, track):
117
  )
118
 
119
 
120
- def init_leaderboard_mib_causal(dataframe, track):
121
  """Creates a leaderboard summary for causal intervention results"""
122
- if dataframe is None or dataframe.empty:
123
- raise ValueError("Leaderboard DataFrame is empty or None.")
124
-
125
- # Read and process JSON data
126
- json_data = json.loads(dataframe.to_json(orient='records'))[0]
127
 
128
  # Process results into summary format
129
  summary_data = []
 
130
  method_name = json_data['method_name']
131
 
132
  # Extract scores for MCQA task
 
117
  )
118
 
119
 
120
+ def init_leaderboard_mib_causal(json_data, track):
121
  """Creates a leaderboard summary for causal intervention results"""
 
 
 
 
 
122
 
123
  # Process results into summary format
124
  summary_data = []
125
+
126
  method_name = json_data['method_name']
127
 
128
  # Extract scores for MCQA task