Tristan Thrush commited on
Commit
4a6b5ad
1 Parent(s): 5e7f283

changed to use metric name instead of metric type

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def parse_metrics_rows(meta, from_autoeval=False):
59
  row["config"] = result["dataset"]["config"]
60
  no_results = True
61
  for metric in result["metrics"]:
62
- name = metric["name"].lower().strip() if "name" in metric else "type"
63
  if name in ("model_id", "dataset", "split", "config", "verified"):
64
  # Metrics are not allowed to be named "dataset", "split", "config", or "verified".
65
  continue
 
59
  row["config"] = result["dataset"]["config"]
60
  no_results = True
61
  for metric in result["metrics"]:
62
+ name = metric["name"].lower().strip() if "name" in metric else metric["type"].lower().strip()
63
  if name in ("model_id", "dataset", "split", "config", "verified"):
64
  # Metrics are not allowed to be named "dataset", "split", "config", or "verified".
65
  continue