David Pomerenke commited on
Commit
7c67b73
·
1 Parent(s): 1dbf2b8

Add soft hyphens in table header

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -232,17 +232,17 @@ def create_language_stats_df(metric):
232
  # if lang["overall_score"] is not None
233
  # else "N/A",
234
  "Best Model": model_link,
235
- "MT": round(lang["mt_chrf"], 3)
236
  if lang["mt_chrf"] is not None
237
  else "N/A",
238
- "CLS": round(lang["cls_acc"], 3)
239
  if lang["cls_acc"] is not None
240
  else "N/A",
241
- "MLM": round(lang["mlm_chrf"], 3)
242
  if lang["mlm_chrf"] is not None
243
  else "N/A",
244
- "ASR": round(lang["asr_chrf"], 3) if lang["asr_wer"] is not None else "N/A",
245
- "Common Voice": commonvoice_link,
246
  }
247
  flat_data.append(row)
248
 
@@ -283,7 +283,7 @@ def create_scatter_plot(metric):
283
  # Create a list to store data for the scatter plot
284
  scatter_data = []
285
  for lang in languages_with_scores:
286
- if lang["speakers"] < 10_000:
287
  continue
288
  # Calculate average score for this metric across all models
289
  scores = [
 
232
  # if lang["overall_score"] is not None
233
  # else "N/A",
234
  "Best Model": model_link,
235
+ "Trans­la­ti­on": round(lang["mt_chrf"], 3)
236
  if lang["mt_chrf"] is not None
237
  else "N/A",
238
+ "Classi­fi­ca­ti­on": round(lang["cls_acc"], 3)
239
  if lang["cls_acc"] is not None
240
  else "N/A",
241
+ "Masked Language Modeling": round(lang["mlm_chrf"], 3)
242
  if lang["mlm_chrf"] is not None
243
  else "N/A",
244
+ "Speech Reco­gni­ti­on": round(lang["asr_chrf"], 3) if lang["asr_wer"] is not None else "N/A",
245
+ "Common­Voice": commonvoice_link,
246
  }
247
  flat_data.append(row)
248
 
 
283
  # Create a list to store data for the scatter plot
284
  scatter_data = []
285
  for lang in languages_with_scores:
286
+ if lang["speakers"] < 100_000:
287
  continue
288
  # Calculate average score for this metric across all models
289
  scores = [