diff --git a/flowsettings.py b/flowsettings.py index e248fac9..4fe8b4ab 100644 --- a/flowsettings.py +++ b/flowsettings.py @@ -4,6 +4,7 @@ from pathlib import Path from decouple import config +from ktem.utils.lang import SUPPORTED_LANGUAGE_MAP from theflow.settings.default import * # noqa cur_frame = currentframe() @@ -284,7 +285,7 @@ "lang": { "name": "Language", "value": "en", - "choices": [("English", "en"), ("Japanese", "ja"), ("Vietnamese", "vi")], + "choices": [(lang, code) for code, lang in SUPPORTED_LANGUAGE_MAP.items()], "component": "dropdown", }, "max_context_length": {