ANYANTUDRE commited on
Commit
91e6bb7
·
1 Parent(s): d42359a

fixed LANG_TO_ID error

Browse files
Files changed (1) hide show
  1. app.py +0 -17
app.py CHANGED
@@ -24,23 +24,6 @@ DESCRIPTION = """<div style="display: flex; justify-content: space-between; alig
24
  </div>
25
  </div>
26
  """
27
- # Whisper's full language ID mapping
28
- LANG_TO_ID = {
29
- "en": 0, "zh": 1, "de": 2, "es": 3, "ru": 4, "ko": 5, "fr": 6, "ja": 7,
30
- "pt": 8, "tr": 9, "pl": 10, "ca": 11, "nl": 12, "ar": 13, "sv": 14,
31
- "it": 15, "id": 16, "hi": 17, "fi": 18, "vi": 19, "he": 20, "uk": 21,
32
- "el": 22, "ms": 23, "cs": 24, "ro": 25, "da": 26, "hu": 27, "ta": 28,
33
- "no": 29, "th": 30, "ur": 31, "hr": 32, "bg": 33, "lt": 34, "la": 35,
34
- "mi": 36, "ml": 37, "cy": 38, "sk": 39, "te": 40, "fa": 41, "lv": 42,
35
- "bn": 43, "sr": 44, "az": 45, "sl": 46, "kn": 47, "et": 48, "mk": 49,
36
- "br": 50, "eu": 51, "is": 52, "hy": 53, "ne": 54, "mn": 55, "bs": 56,
37
- "kk": 57, "sq": 58, "sw": 59, "gl": 60, "mr": 61, "pa": 62, "si": 63,
38
- "km": 64, "sn": 65, "yo": 66, "so": 67, "af": 68, "oc": 69, "ka": 70,
39
- "be": 71, "tg": 72, "sd": 73, "gu": 74, "am": 75, "yi": 76, "lo": 77,
40
- "uz": 78, "fo": 79, "ht": 80, "ps": 81, "tk": 82, "nn": 83, "mt": 84,
41
- "sa": 85, "lb": 86, "my": 87, "bo": 88, "tl": 89, "mg": 90, "as": 91,
42
- "tt": 92, "haw": 93, "ln": 94, "ha": 95, "ba": 96, "jw": 97, "su": 98
43
- }
44
 
45
 
46
 
 
24
  </div>
25
  </div>
26
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
 
29