Spaces:
Running
Running
Update app.py
Browse files
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"]})
|