navidved commited on
Commit
88109c0
1 Parent(s): b3ee198

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -14,7 +14,9 @@ column_names = {
14
  "WER": "Common Voice WER ⬇️",
15
  "CER": "Common Voice CER ⬇️",
16
  "WER2": "persian-asr-test-set WER" ,
17
- "CER2": "persian-asr-test-set CER"
 
 
18
  }
19
 
20
  # Load evaluation results
@@ -41,7 +43,7 @@ for col in original_df.columns:
41
  original_df[col] = original_df[col].apply(formatter)
42
 
43
  original_df.rename(columns=column_names, inplace=True)
44
- original_df.sort_values(by='persian-asr-test-set WER', inplace=True)
45
 
46
  COLS = [c.name for c in fields(AutoEvalColumn)]
47
  TYPES = [c.type for c in fields(AutoEvalColumn)]
@@ -121,7 +123,7 @@ def request_model(model_text):
121
  else:
122
  original_df[col] = original_df[col].apply(formatter)
123
  original_df.rename(columns=column_names, inplace=True)
124
- original_df.sort_values(by='persian-asr-test-set WER', inplace=True)
125
 
126
  # Update the leaderboard table in the UI
127
  leaderboard_table.update(value=original_df)
 
14
  "WER": "Common Voice WER ⬇️",
15
  "CER": "Common Voice CER ⬇️",
16
  "WER2": "persian-asr-test-set WER" ,
17
+ "CER2": "persian-asr-test-set CER",
18
+ "WER3": "asr-farsi-youtube WER",
19
+ "CER3": "asr-farsi-youtube CER"
20
  }
21
 
22
  # Load evaluation results
 
43
  original_df[col] = original_df[col].apply(formatter)
44
 
45
  original_df.rename(columns=column_names, inplace=True)
46
+ original_df.sort_values(by='asr-farsi-youtube WER', inplace=True)
47
 
48
  COLS = [c.name for c in fields(AutoEvalColumn)]
49
  TYPES = [c.type for c in fields(AutoEvalColumn)]
 
123
  else:
124
  original_df[col] = original_df[col].apply(formatter)
125
  original_df.rename(columns=column_names, inplace=True)
126
+ original_df.sort_values(by='asr-farsi-youtube WER', inplace=True)
127
 
128
  # Update the leaderboard table in the UI
129
  leaderboard_table.update(value=original_df)