misterkissi commited on
Commit
d6a0a84
·
verified ·
1 Parent(s): 243e427

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -35
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
- "Akan (Asante Twi)": "FarmerlineML/w2v-bert-2.0_twi_alpha_v1",
167
- "Ewe": "FarmerlineML/w2v-bert-2.0_ewe_2",
168
- "Kiswahili": "FarmerlineML/w2v-bert-2.0_swahili_alpha",
169
- "Luganda": "FarmerlineML/w2v-bert-2.0_luganda", # active
170
- # "Luganda (FKD)": "FarmerlineML/luganda_fkd", # commented out per request
171
- "Brazilian Portuguese": "FarmerlineML/w2v-bert-2.0_brazilian_portugese_alpha",
172
- "Fante": "misterkissi/w2v2-lg-xls-r-300m-fante",
173
- "Bemba": "DarliAI/kissi-w2v2-lg-xls-r-300m-bemba",
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) --------