manu commited on
Commit
2ec8f31
·
verified ·
1 Parent(s): 90bbe69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -20,6 +20,8 @@ def compute_df():
20
  result_path = api.hf_hub_download("illuin-cde/baselines-v2", filename=file)
21
  with open(result_path, "r") as f:
22
  dic = json.load(f)
 
 
23
  metrics_cur = dic["metrics"]
24
  for k, v in metrics_cur.items():
25
  dic.update({k: v["ndcg_at_10"]})
 
20
  result_path = api.hf_hub_download("illuin-cde/baselines-v2", filename=file)
21
  with open(result_path, "r") as f:
22
  dic = json.load(f)
23
+ if dic["is_contextual"] not in ["multi", "single", "hybrid"]:
24
+ continue
25
  metrics_cur = dic["metrics"]
26
  for k, v in metrics_cur.items():
27
  dic.update({k: v["ndcg_at_10"]})