Spaces:
Running
Running
Update flores200_codes.py
Browse files- flores200_codes.py +11 -4
flores200_codes.py
CHANGED
@@ -44,8 +44,15 @@ Yoruba yor_Latn
|
|
44 |
Zulu zul_Latn'''
|
45 |
|
46 |
codes_as_string = codes_as_string.split('\n')
|
47 |
-
|
48 |
flores_codes = {}
|
49 |
-
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
Zulu zul_Latn'''
|
45 |
|
46 |
codes_as_string = codes_as_string.split('\n')
|
|
|
47 |
flores_codes = {}
|
48 |
+
|
49 |
+
try:
|
50 |
+
for code in codes_as_string:
|
51 |
+
lang, lang_code = code.split('\t')
|
52 |
+
flores_codes[lang] = lang_code
|
53 |
+
except ValueError:
|
54 |
+
lang = None
|
55 |
+
lang_code = None
|
56 |
+
|
57 |
+
|
58 |
+
|