Spaces:
Runtime error
Runtime error
Update app.py
#1
by
reach-vb
HF staff
- opened
app.py
CHANGED
@@ -139,8 +139,8 @@ first_query_params = st.session_state.first_query_params
|
|
139 |
# define the scope of the leaderboard
|
140 |
only_verified_results = False
|
141 |
task = "automatic-speech-recognition"
|
142 |
-
selectable_datasets = ["mozilla-foundation/common_voice_11_0", "google/fleurs"]
|
143 |
-
dataset_mapping = {"mozilla-foundation/common_voice_11_0": "Common Voice 11", "google/fleurs": "FLEURS"} # get a 'pretty' name for our datasets
|
144 |
split = "test"
|
145 |
selectable_metrics = ["wer", "cer"]
|
146 |
default_metric = selectable_metrics[0]
|
@@ -172,6 +172,9 @@ if dataset == "mozilla-foundation/common_voice_11_0":
|
|
172 |
elif dataset == "google/fleurs":
|
173 |
selectable_configs = [config for config in selectable_configs if config in FLEURS_LANGUAGES]
|
174 |
visual_configs = [f"{config}: {FLEURS_LANGUAGES[config]}" for config in selectable_configs]
|
|
|
|
|
|
|
175 |
|
176 |
config = st.sidebar.selectbox(
|
177 |
"Language",
|
|
|
139 |
# define the scope of the leaderboard
|
140 |
only_verified_results = False
|
141 |
task = "automatic-speech-recognition"
|
142 |
+
selectable_datasets = ["mozilla-foundation/common_voice_11_0", "google/fleurs", "facebook/multilingual_librispeech"]
|
143 |
+
dataset_mapping = {"mozilla-foundation/common_voice_11_0": "Common Voice 11", "google/fleurs": "FLEURS", "facebook/multilingual_librispeech": "MLS"} # get a 'pretty' name for our datasets
|
144 |
split = "test"
|
145 |
selectable_metrics = ["wer", "cer"]
|
146 |
default_metric = selectable_metrics[0]
|
|
|
172 |
elif dataset == "google/fleurs":
|
173 |
selectable_configs = [config for config in selectable_configs if config in FLEURS_LANGUAGES]
|
174 |
visual_configs = [f"{config}: {FLEURS_LANGUAGES[config]}" for config in selectable_configs]
|
175 |
+
elif dataset == "facebook/multilingual_librispeech":
|
176 |
+
selectable_configs = [config for config in selectable_configs if config in MLS_LANGUAGES]
|
177 |
+
visual_configs = [f"{config}: {FLEURS_LANGUAGES[config]}" for config in selectable_configs]
|
178 |
|
179 |
config = st.sidebar.selectbox(
|
180 |
"Language",
|