anton-l HF staff commited on
Commit
e0d0174
β€’
1 Parent(s): ccfdd1c

Default config = language in most cases

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -71,7 +71,7 @@ def parse_metrics_rows(meta):
71
  lang = meta["language"]
72
  lang = lang[0] if isinstance(lang, list) else lang
73
  lang = aliases_lang[lang] if lang in aliases_lang else lang
74
- config = result["dataset"]["config"] if "config" in result["dataset"] else None
75
  split = result["dataset"]["split"] if "split" in result["dataset"] else None
76
  row = {
77
  "dataset": dataset,
 
71
  lang = meta["language"]
72
  lang = lang[0] if isinstance(lang, list) else lang
73
  lang = aliases_lang[lang] if lang in aliases_lang else lang
74
+ config = result["dataset"]["config"] if "config" in result["dataset"] else lang
75
  split = result["dataset"]["split"] if "split" in result["dataset"] else None
76
  row = {
77
  "dataset": dataset,