David Pomerenke
commited on
Commit
·
d3bce4d
1
Parent(s):
4746aca
Links to language pages
Browse files
app.py
CHANGED
@@ -225,8 +225,10 @@ def create_language_stats_df(metric):
|
|
225 |
if lang["commonvoice_hours"]
|
226 |
else "N/A"
|
227 |
)
|
|
|
|
|
228 |
row = {
|
229 |
-
"Language":
|
230 |
"Speakers (M)": round(lang["speakers"] / 1_000_000, 1),
|
231 |
# "Models Tested": len(lang["scores"]),
|
232 |
# "Overall": round(lang["overall_score"], 3)
|
|
|
225 |
if lang["commonvoice_hours"]
|
226 |
else "N/A"
|
227 |
)
|
228 |
+
language_link = f"<a href='/{lang['bcp_47']}' style='text-decoration: none; font-weight: bold;'>{lang['language_name']}</a>"
|
229 |
+
|
230 |
row = {
|
231 |
+
"Language": language_link,
|
232 |
"Speakers (M)": round(lang["speakers"] / 1_000_000, 1),
|
233 |
# "Models Tested": len(lang["scores"]),
|
234 |
# "Overall": round(lang["overall_score"], 3)
|