Spaces:
Runtime error
Runtime error
Muhammad-Arham
commited on
Commit
•
4f201ed
1
Parent(s):
6dbdc81
updated the language list
Browse files
app.py
CHANGED
@@ -40,8 +40,8 @@ def process_speech(audio_input,input_language,target_language):
|
|
40 |
None,
|
41 |
audio_input, #audio_name
|
42 |
"",
|
43 |
-
input_language,# source language
|
44 |
-
|
45 |
api_name="/run",
|
46 |
)
|
47 |
out = out[1] # get the text
|
@@ -302,7 +302,111 @@ welcome_message = """
|
|
302 |
"""
|
303 |
|
304 |
|
305 |
-
languages = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
|
307 |
with gr.Blocks(theme='ParityError/Anime') as iface :
|
308 |
gr.Markdown(welcome_message)
|
|
|
40 |
None,
|
41 |
audio_input, #audio_name
|
42 |
"",
|
43 |
+
input_language,# Use selected input language as the source language
|
44 |
+
input_language,# Use selected input language as the target language
|
45 |
api_name="/run",
|
46 |
)
|
47 |
out = out[1] # get the text
|
|
|
302 |
"""
|
303 |
|
304 |
|
305 |
+
languages = [
|
306 |
+
"Afrikaans",
|
307 |
+
"Amharic",
|
308 |
+
"Modern Standard Arabic",
|
309 |
+
"Moroccan Arabic",
|
310 |
+
"Egyptian Arabic",
|
311 |
+
"Assamese",
|
312 |
+
"Asturian",
|
313 |
+
"North Azerbaijani",
|
314 |
+
"Belarusian",
|
315 |
+
"Bengali",
|
316 |
+
"Bosnian",
|
317 |
+
"Bulgarian",
|
318 |
+
"Catalan",
|
319 |
+
"Cebuano",
|
320 |
+
"Czech",
|
321 |
+
"Central Kurdish",
|
322 |
+
"Mandarin Chinese",
|
323 |
+
"Welsh",
|
324 |
+
"Danish",
|
325 |
+
"German",
|
326 |
+
"Greek",
|
327 |
+
"English",
|
328 |
+
"Estonian",
|
329 |
+
"Basque",
|
330 |
+
"Finnish",
|
331 |
+
"French",
|
332 |
+
"West Central Oromo",
|
333 |
+
"Irish",
|
334 |
+
"Galician",
|
335 |
+
"Gujarati",
|
336 |
+
"Hebrew",
|
337 |
+
"Hindi",
|
338 |
+
"Croatian",
|
339 |
+
"Hungarian",
|
340 |
+
"Armenian",
|
341 |
+
"Igbo",
|
342 |
+
"Indonesian",
|
343 |
+
"Icelandic",
|
344 |
+
"Italian",
|
345 |
+
"Javanese",
|
346 |
+
"Japanese",
|
347 |
+
"Kamba",
|
348 |
+
"Kannada",
|
349 |
+
"Georgian",
|
350 |
+
"Kazakh",
|
351 |
+
"Kabuverdianu",
|
352 |
+
"Halh Mongolian",
|
353 |
+
"Khmer",
|
354 |
+
"Kyrgyz",
|
355 |
+
"Korean",
|
356 |
+
"Lao",
|
357 |
+
"Lithuanian",
|
358 |
+
"Luxembourgish",
|
359 |
+
"Ganda",
|
360 |
+
"Luo",
|
361 |
+
"Standard Latvian",
|
362 |
+
"Maithili",
|
363 |
+
"Malayalam",
|
364 |
+
"Marathi",
|
365 |
+
"Macedonian",
|
366 |
+
"Maltese",
|
367 |
+
"Meitei",
|
368 |
+
"Burmese",
|
369 |
+
"Dutch",
|
370 |
+
"Norwegian Nynorsk",
|
371 |
+
"Norwegian Bokmål",
|
372 |
+
"Nepali",
|
373 |
+
"Nyanja",
|
374 |
+
"Occitan",
|
375 |
+
"Odia",
|
376 |
+
"Punjabi",
|
377 |
+
"Southern Pashto",
|
378 |
+
"Western Persian",
|
379 |
+
"Polish",
|
380 |
+
"Portuguese",
|
381 |
+
"Romanian",
|
382 |
+
"Russian",
|
383 |
+
"Slovak",
|
384 |
+
"Slovenian",
|
385 |
+
"Shona",
|
386 |
+
"Sindhi",
|
387 |
+
"Somali",
|
388 |
+
"Spanish",
|
389 |
+
"Serbian",
|
390 |
+
"Swedish",
|
391 |
+
"Swahili",
|
392 |
+
"Tamil",
|
393 |
+
"Telugu",
|
394 |
+
"Tajik",
|
395 |
+
"Tagalog",
|
396 |
+
"Thai",
|
397 |
+
"Turkish",
|
398 |
+
"Ukrainian",
|
399 |
+
"Urdu",
|
400 |
+
"Northern Uzbek",
|
401 |
+
"Vietnamese",
|
402 |
+
"Xhosa",
|
403 |
+
"Yoruba",
|
404 |
+
"Cantonese",
|
405 |
+
"Colloquial Malay",
|
406 |
+
"Standard Malay",
|
407 |
+
"Zulu"
|
408 |
+
]
|
409 |
+
|
410 |
|
411 |
with gr.Blocks(theme='ParityError/Anime') as iface :
|
412 |
gr.Markdown(welcome_message)
|