Spaces:
Sleeping
Sleeping
Download engine/__init__.py from billingsmoore/SimpleTranslationUI: direct link, hf CLI and curl.
- Browser
- Download file 489 Bytes
-
https://huggingface.co/spaces/billingsmoore/SimpleTranslationUI/resolve/448481b41c19ec2ec4e1d385f26c1e799ae80869/engine/__init__.py
- Command line
-
hf download hf://spaces/billingsmoore/SimpleTranslationUI@448481b41c19ec2ec4e1d385f26c1e799ae80869/engine/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/billingsmoore/SimpleTranslationUI/resolve/448481b41c19ec2ec4e1d385f26c1e799ae80869/engine/__init__.py
489 Bytes
| """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 .translate import ( | |
| CURATED_MODELS, | |
| DEFAULT_MODEL, | |
| list_model_choices, | |
| translate_one, | |
| translate_segments, | |
| using_openrouter, | |
| ) | |