Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -101,14 +101,12 @@ def _push_row_to_hf_dataset(row, audio_file_path):
|
|
101 |
return "Pushed to HF Dataset."
|
102 |
|
103 |
# --- Map display names to your HF Hub model IDs ---
|
104 |
-
#
|
105 |
-
# and comment out the fkd variant to avoid accidental overrides.
|
106 |
language_models = {
|
107 |
"Akan (Asante Twi)": "FarmerlineML/w2v-bert-2.0_twi_alpha_v1",
|
108 |
"Ewe": "FarmerlineML/w2v-bert-2.0_ewe_2",
|
109 |
"Kiswahili": "FarmerlineML/w2v-bert-2.0_swahili_alpha",
|
110 |
-
"Luganda": "FarmerlineML/w2v-bert-2.0_luganda",
|
111 |
-
# "Luganda (fkd)": "FarmerlineML/luganda_fkd", # commented out per request
|
112 |
"Brazilian Portuguese": "FarmerlineML/w2v-bert-2.0_brazilian_portugese_alpha",
|
113 |
"Fante": "misterkissi/w2v2-lg-xls-r-300m-fante",
|
114 |
"Bemba": "DarliAI/kissi-w2v2-lg-xls-r-300m-bemba",
|
@@ -126,16 +124,19 @@ language_models = {
|
|
126 |
"Amharic": "misterkissi/w2v2-lg-xls-r-1b-amharic",
|
127 |
"Xhosa": "misterkissi/w2v2-lg-xls-r-300m-xhosa",
|
128 |
"Tsonga": "misterkissi/w2v2-lg-xls-r-300m-tsonga",
|
129 |
-
# "WOLOF":
|
130 |
-
# "HAITIAN CREOLE":
|
131 |
-
# "KABYLE":
|
132 |
"Yoruba": "FarmerlineML/w2v-bert-2.0_yoruba_v1",
|
|
|
133 |
"Luo": "FarmerlineML/w2v-bert-2.0_luo_v2",
|
134 |
"Somali": "FarmerlineML/w2v-bert-2.0_somali_alpha",
|
135 |
"Pidgin": "FarmerlineML/pidgin_nigerian",
|
136 |
"Kikuyu": "FarmerlineML/w2v-bert-2.0_kikuyu",
|
137 |
"Igbo": "FarmerlineML/w2v-bert-2.0_igbo_v1",
|
138 |
-
"Krio": "FarmerlineML/w2v-bert-2.0_krio_v3"
|
|
|
|
|
139 |
}
|
140 |
|
141 |
# -------- Lazy-load pipeline cache (Space-safe) --------
|
|
|
101 |
return "Pushed to HF Dataset."
|
102 |
|
103 |
# --- Map display names to your HF Hub model IDs ---
|
104 |
+
# --- EDIT THIS: map display names to your HF Hub model IDs ---
|
|
|
105 |
language_models = {
|
106 |
"Akan (Asante Twi)": "FarmerlineML/w2v-bert-2.0_twi_alpha_v1",
|
107 |
"Ewe": "FarmerlineML/w2v-bert-2.0_ewe_2",
|
108 |
"Kiswahili": "FarmerlineML/w2v-bert-2.0_swahili_alpha",
|
109 |
+
# "Luganda": "FarmerlineML/w2v-bert-2.0_luganda",
|
|
|
110 |
"Brazilian Portuguese": "FarmerlineML/w2v-bert-2.0_brazilian_portugese_alpha",
|
111 |
"Fante": "misterkissi/w2v2-lg-xls-r-300m-fante",
|
112 |
"Bemba": "DarliAI/kissi-w2v2-lg-xls-r-300m-bemba",
|
|
|
124 |
"Amharic": "misterkissi/w2v2-lg-xls-r-1b-amharic",
|
125 |
"Xhosa": "misterkissi/w2v2-lg-xls-r-300m-xhosa",
|
126 |
"Tsonga": "misterkissi/w2v2-lg-xls-r-300m-tsonga",
|
127 |
+
# "WOLOF": "misterkissi/w2v2-lg-xls-r-1b-wolof",
|
128 |
+
# "HAITIAN CREOLE": "misterkissi/whisper-small-haitian-creole",
|
129 |
+
# "KABYLE": "misterkissi/w2v2-lg-xls-r-1b-kabyle",
|
130 |
"Yoruba": "FarmerlineML/w2v-bert-2.0_yoruba_v1",
|
131 |
+
"Luganda": "FarmerlineML/luganda_fkd",
|
132 |
"Luo": "FarmerlineML/w2v-bert-2.0_luo_v2",
|
133 |
"Somali": "FarmerlineML/w2v-bert-2.0_somali_alpha",
|
134 |
"Pidgin": "FarmerlineML/pidgin_nigerian",
|
135 |
"Kikuyu": "FarmerlineML/w2v-bert-2.0_kikuyu",
|
136 |
"Igbo": "FarmerlineML/w2v-bert-2.0_igbo_v1",
|
137 |
+
#"Krio": "FarmerlineML/w2v-bert-2.0_krio_v3"
|
138 |
+
|
139 |
+
# add more as needed
|
140 |
}
|
141 |
|
142 |
# -------- Lazy-load pipeline cache (Space-safe) --------
|