Spaces:
Running
on
Zero
Running
on
Zero
DavidUNESCO
commited on
Commit
•
61e0458
1
Parent(s):
e73c7fc
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ REMOVED_TARGET_LANGUAGES = {"Ligurian", "Lombard", "Sicilian"}
|
|
14 |
device = "cpu" if platform.system() == "Darwin" else "cuda"
|
15 |
MODEL_NAME = "facebook/nllb-200-3.3B"
|
16 |
|
17 |
-
code_mapping = dict(sorted(code_mapping.items(), key=lambda item: item[
|
18 |
flores_codes = list(code_mapping.keys())
|
19 |
target_languages = [language for language in flores_codes if not language in REMOVED_TARGET_LANGUAGES]
|
20 |
|
|
|
14 |
device = "cpu" if platform.system() == "Darwin" else "cuda"
|
15 |
MODEL_NAME = "facebook/nllb-200-3.3B"
|
16 |
|
17 |
+
code_mapping = dict(sorted(code_mapping.items(), key=lambda item: item[0]))
|
18 |
flores_codes = list(code_mapping.keys())
|
19 |
target_languages = [language for language in flores_codes if not language in REMOVED_TARGET_LANGUAGES]
|
20 |
|