Aaron Mueller commited on
Commit
0e10c39
·
1 Parent(s): af94ea7

filtering fix

Browse files
Files changed (1) hide show
  1. src/populate.py +2 -3
src/populate.py CHANGED
@@ -14,10 +14,9 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
14
  all_data_json = [v.to_dict() for v in raw_data]
15
  all_data_json_filtered = []
16
  for item in all_data_json:
17
- print(benchmark_cols, "|||", item.keys())
18
- if "VQA" in benchmark_cols and "vqa" in item:
19
  all_data_json_filtered.append(item)
20
- if "VQA" not in benchmark_cols and "vqa" not in item:
21
  all_data_json_filtered.append(item)
22
  all_data_json = all_data_json_filtered
23
 
 
14
  all_data_json = [v.to_dict() for v in raw_data]
15
  all_data_json_filtered = []
16
  for item in all_data_json:
17
+ if "VQA" in benchmark_cols and "VQA" in item:
 
18
  all_data_json_filtered.append(item)
19
+ if "VQA" not in benchmark_cols and "VQA" not in item:
20
  all_data_json_filtered.append(item)
21
  all_data_json = all_data_json_filtered
22