manu commited on
Commit
3a6bb2d
·
verified ·
1 Parent(s): c2d0ad9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,15 +15,15 @@ def compute_df():
15
  print(files)
16
 
17
  metrics = []
18
- cols = ["model", "is_contextual"]
19
  for file in files:
20
  result_path = api.hf_hub_download("illuin-cde/baselines-v3", 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
- prefix = dic.get("pooling", "default")
26
- dic["model"] = dic.get("model").split("/")[-1] + "-" + prefix
27
  metrics_cur = dic["metrics"]
28
  for k, v in metrics_cur.items():
29
  dic.update({k: v["ndcg_at_10"]})
 
15
  print(files)
16
 
17
  metrics = []
18
+ cols = ["model", "is_contextual", "pooling"]
19
  for file in files:
20
  result_path = api.hf_hub_download("illuin-cde/baselines-v3", 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
+ # prefix = dic.get("pooling", "default")
26
+ dic["model"] = dic.get("model").split("/")[-1] # + "-" + prefix
27
  metrics_cur = dic["metrics"]
28
  for k, v in metrics_cur.items():
29
  dic.update({k: v["ndcg_at_10"]})