Spaces:
Running
Running
patrickvonplaten
commited on
Commit
β’
46d7387
1
Parent(s):
d02a3f7
up
Browse files
app.py
CHANGED
@@ -70,7 +70,6 @@ def parse_metrics_rows(meta):
|
|
70 |
dataset = result["dataset"]["type"]
|
71 |
if "args" not in result["dataset"]:
|
72 |
continue
|
73 |
-
dataset_config = result["dataset"]["args"]
|
74 |
row = {"dataset": dataset, "lang": lang}
|
75 |
for metric in result["metrics"]:
|
76 |
type = metric["type"].lower().strip()
|
@@ -117,8 +116,8 @@ def sort_datasets(datasets):
|
|
117 |
|
118 |
@st.cache(ttl=600)
|
119 |
def generate_dataset_info(datasets):
|
120 |
-
msg =
|
121 |
-
The models have been trained and/or evaluated on the following datasets:
|
122 |
"""
|
123 |
for dataset_id in datasets:
|
124 |
if dataset_id in suggested_datasets:
|
@@ -141,7 +140,7 @@ st.sidebar.image("logo.png", width=200)
|
|
141 |
st.markdown("# The π€ Speech Bench")
|
142 |
|
143 |
st.markdown(
|
144 |
-
"This is a leaderboard
|
145 |
"β¬
Please select the language you want to find a model for from the dropdown on the left."
|
146 |
)
|
147 |
|
@@ -216,4 +215,4 @@ else:
|
|
216 |
|
217 |
st.markdown(
|
218 |
"Want to beat the Leaderboard? Don't see your speech recognition model show up here? Simply add the `hf-asr-leaderboard` tag to your model card alongside your evaluation metrics. See [this commit](https://huggingface.co/facebook/wav2vec2-base-960h/commit/88338305603a4d8db25aca96e669beb5f7dc65cb) as an example."
|
219 |
-
)
|
|
|
70 |
dataset = result["dataset"]["type"]
|
71 |
if "args" not in result["dataset"]:
|
72 |
continue
|
|
|
73 |
row = {"dataset": dataset, "lang": lang}
|
74 |
for metric in result["metrics"]:
|
75 |
type = metric["type"].lower().strip()
|
|
|
116 |
|
117 |
@st.cache(ttl=600)
|
118 |
def generate_dataset_info(datasets):
|
119 |
+
msg = """
|
120 |
+
The models have been trained and/or evaluated on the following datasets:
|
121 |
"""
|
122 |
for dataset_id in datasets:
|
123 |
if dataset_id in suggested_datasets:
|
|
|
140 |
st.markdown("# The π€ Speech Bench")
|
141 |
|
142 |
st.markdown(
|
143 |
+
f"This is a leaderboard of **{len(dataframe)}** speech recognition models and **{len(dataframe['dataset'].unique())}** datasets.\n\n"
|
144 |
"β¬
Please select the language you want to find a model for from the dropdown on the left."
|
145 |
)
|
146 |
|
|
|
215 |
|
216 |
st.markdown(
|
217 |
"Want to beat the Leaderboard? Don't see your speech recognition model show up here? Simply add the `hf-asr-leaderboard` tag to your model card alongside your evaluation metrics. See [this commit](https://huggingface.co/facebook/wav2vec2-base-960h/commit/88338305603a4d8db25aca96e669beb5f7dc65cb) as an example."
|
218 |
+
)
|