""" Constants used in the DuoSubs Hugging Face Web UI. This module defines file paths, supported subtitle formats, merging mode options, and default values for use in the UI and other components. """ from pathlib import Path from duosubs import MergingMode, SubtitleFormat TITLE_HTML = Path(__file__).parent.parent / "assets" / "title.html" MERGING_MODE_INFO = Path(__file__).parent.parent / "assets" / "merging_mode_info.html" SUB_EXT_LIST: list[str] = [f.value for f in SubtitleFormat] SUB_EXT_LIST_WITH_DOT: list[str] = [f".{ext}" for ext in SUB_EXT_LIST] MERGING_MODE_LIST: list[str] = [f.value.capitalize() for f in MergingMode] DEFAULT_SUB_EXT = SubtitleFormat.ASS.value MODEL_NAME_LIST = [ "sentence-transformers/LaBSE", "BAAI/bge-m3", "Qwen/Qwen3-Embedding-0.6B", ]