Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -163,41 +163,14 @@ def _push_row_to_hf_dataset(row, audio_file_path):
|
|
163 |
|
164 |
# --- Map display names to your HF Hub model IDs ---
|
165 |
language_models = {
|
166 |
-
"
|
167 |
-
"
|
168 |
-
"
|
169 |
-
"
|
170 |
-
|
171 |
-
"
|
172 |
-
"
|
173 |
-
"
|
174 |
-
"Bambara": "DarliAI/kissi-w2v2-lg-xls-r-300m-bambara",
|
175 |
-
"Dagaare": "DarliAI/kissi-w2v2-lg-xls-r-300m-dagaare",
|
176 |
-
"Kinyarwanda": "DarliAI/kissi-w2v2-lg-xls-r-300m-kinyarwanda",
|
177 |
-
"Fula": "DarliAI/kissi-wav2vec2-fula-fleurs-full",
|
178 |
-
"Oromo": "DarliAI/kissi-w2v-bert-2.0-oromo",
|
179 |
-
"Runynakore": "misterkissi/w2v2-lg-xls-r-300m-runyankore",
|
180 |
-
"Ga": "misterkissi/w2v2-lg-xls-r-300m-ga",
|
181 |
-
"Vai": "misterkissi/whisper-small-vai",
|
182 |
-
"Kasem": "misterkissi/w2v2-lg-xls-r-300m-kasem",
|
183 |
-
"Lingala": "misterkissi/w2v2-lg-xls-r-300m-lingala",
|
184 |
-
"Fongbe": "misterkissi/whisper-small-fongbe",
|
185 |
-
"Amharic": "misterkissi/w2v2-lg-xls-r-1b-amharic",
|
186 |
-
"Xhosa": "misterkissi/w2v2-lg-xls-r-300m-xhosa",
|
187 |
-
"Tsonga": "misterkissi/w2v2-lg-xls-r-300m-tsonga",
|
188 |
-
# "WOLOF": "misterkissi/w2v2-lg-xls-r-1b-wolof",
|
189 |
-
# "HAITIAN CREOLE": "misterkissi/whisper-small-haitian-creole",
|
190 |
-
# "KABYLE": "misterkissi/w2v2-lg-xls-r-1b-kabyle",
|
191 |
-
"Yoruba": "FarmerlineML/w2v-bert-2.0_yoruba_v1",
|
192 |
-
"Luo": "FarmerlineML/w2v-bert-2.0_luo_v2",
|
193 |
-
"Somali": "FarmerlineML/w2v-bert-2.0_somali_alpha",
|
194 |
-
"Pidgin": "FarmerlineML/pidgin_nigerian",
|
195 |
-
"Kikuyu": "FarmerlineML/w2v-bert-2.0_kikuyu",
|
196 |
-
"Igbo": "FarmerlineML/w2v-bert-2.0_igbo_v1",
|
197 |
-
"Krio": "FarmerlineML/w2v-bert-2.0_krio_v3",
|
198 |
-
"Dyula": "FarmerlineML/w2v-bert-2.0_dyula",
|
199 |
-
"Kamba": "FarmerlineML/w2v-bert-2.0_kamba"
|
200 |
-
|
201 |
}
|
202 |
|
203 |
# -------- Robust audio loader (handles MP3/M4A via ffmpeg; wav/flac via soundfile) --------
|
|
|
163 |
|
164 |
# --- Map display names to your HF Hub model IDs ---
|
165 |
language_models = {
|
166 |
+
"Wolof": "misterkissi/w2v2-lg-xls-r-1b-wolof",
|
167 |
+
"Haitian Creole": "misterkissi/whisper-small-haitian-creole",
|
168 |
+
"Kabyle": "misterkissi/w2v2-lg-xls-r-1b-kabyle",
|
169 |
+
"Zulu": "misterkissi/w2v2-lg-xls-r-300m-zulu",
|
170 |
+
"Deg": "misterkissi/w2v2-lg-xls-r-300m-deg",
|
171 |
+
"Vagla": "misterkissi/w2v2-lg-xls-r-300m-vagla",
|
172 |
+
"Haitian Creole": "misterkissi/whisper-small-haitian-creole",
|
173 |
+
"Malagasy": "misterkissi/whisper-small-malagasy",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
}
|
175 |
|
176 |
# -------- Robust audio loader (handles MP3/M4A via ffmpeg; wav/flac via soundfile) --------
|