Spaces:
Running on Zero
Running on Zero
File size: 524 Bytes
88a619b 04721fb 88a619b 36fc86c 88a619b 36fc86c 88a619b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | """Translation engine for SimpleTranslationUI.
Public surface used by handlers.py / app.py.
"""
from .chunking import split_into_segments
from .formats import (
load_source_file,
export_to_txt,
export_to_docx,
export_to_json,
parse_json,
)
from .prompt import read_prompt, save_prompt, reset_prompt, PROMPT_PATH
from .usage_store import log_event
from .translate import (
CURATED_MODELS,
DEFAULT_MODEL,
list_model_choices,
translate_one,
translate_segments,
using_openrouter,
)
|