vargha commited on
Commit
de0f093
1 Parent(s): 15ab68a

leaderboard update

Browse files
Files changed (2) hide show
  1. app.py +5 -5
  2. init.py +3 -3
app.py CHANGED
@@ -9,9 +9,9 @@ from datetime import datetime, timezone
9
  LAST_UPDATED = "OCT 2nd 2024"
10
 
11
  column_names = {
12
- "MODEL": "Model",
13
- "WER": "WER ⬇️",
14
- "CER": "CER ⬇️",
15
  }
16
 
17
  # Load evaluation results
@@ -31,13 +31,13 @@ def formatter(x):
31
  return round(x, 2)
32
 
33
  for col in original_df.columns:
34
- if col == "model":
35
  original_df[col] = original_df[col].apply(lambda x: x.replace(x, make_clickable_model(x)))
36
  else:
37
  original_df[col] = original_df[col].apply(formatter)
38
 
39
  original_df.rename(columns=column_names, inplace=True)
40
- original_df.sort_values(by='WER ⬇️', inplace=True)
41
 
42
  COLS = [c.name for c in fields(AutoEvalColumn)]
43
  TYPES = [c.type for c in fields(AutoEvalColumn)]
 
9
  LAST_UPDATED = "OCT 2nd 2024"
10
 
11
  column_names = {
12
+ "Model": "Model",
13
+ "WER": "WER",
14
+ "CER": "CER",
15
  }
16
 
17
  # Load evaluation results
 
31
  return round(x, 2)
32
 
33
  for col in original_df.columns:
34
+ if col == "Model":
35
  original_df[col] = original_df[col].apply(lambda x: x.replace(x, make_clickable_model(x)))
36
  else:
37
  original_df[col] = original_df[col].apply(formatter)
38
 
39
  original_df.rename(columns=column_names, inplace=True)
40
+ original_df.sort_values(by='WER', inplace=True)
41
 
42
  COLS = [c.name for c in fields(AutoEvalColumn)]
43
  TYPES = [c.type for c in fields(AutoEvalColumn)]
init.py CHANGED
@@ -3,9 +3,9 @@ from constants import EVAL_REQUESTS_PATH
3
  from pathlib import Path
4
  from huggingface_hub import HfApi, Repository
5
 
6
- TOKEN_HUB = os.environ.get("TOKEN_HUB")
7
- QUEUE_REPO = os.environ.get("QUEUE_REPO")
8
- QUEUE_PATH = os.environ.get("QUEUE_PATH")
9
 
10
  hf_api = HfApi(
11
  endpoint="https://huggingface.co",
 
3
  from pathlib import Path
4
  from huggingface_hub import HfApi, Repository
5
 
6
+ TOKEN_HUB = os.environ.get("TOKEN_HUB", None)
7
+ QUEUE_REPO = os.environ.get("QUEUE_REPO", None)
8
+ QUEUE_PATH = os.environ.get("QUEUE_PATH", None)
9
 
10
  hf_api = HfApi(
11
  endpoint="https://huggingface.co",