- 9 Październik 2023
- 16 613
- 11
- 1 891
- 153
- QNAP
- null
- Ethernet
- null
Documentation
przed odpaleniem wykonać:
przy poprawnym odpaleniu , log będzie wyglądał tak:
co działa:
czy tam przetłumaczy pliki:
Obecnie - wszystkie dostępne języki ważą 10 GB.
a co można z tym zrobić ? Powiedzieć Subtitle Edit GitHub - SubtitleEdit/subtitleedit: the subtitle editor :) - przetłumacz mi te bzdury na Polski !
YAML:
services:
libretranslate:
container_name: libretranslate
image: libretranslate/libretranslate:latest
ports:
- "5000:5000"
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
interval: 10s
timeout: 4s
retries: 4
start_period: 5s
## Uncomment this for logging in docker compose logs
tty: true
## Uncomment above command and define your args if necessary
## Refer to the documentation for more information: https://docs.libretranslate.com/guides/installation/#arguments
# command: --ssl --req-limit 100 --char-limit 500
## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys
environment:
- LT_API_KEYS=true
- LT_API_KEYS_DB_PATH=/app/db/api_keys.db # Same result as `db/api_keys.db` or `./db/api_keys.db`
## Uncomment these vars and libretranslate_models volume to optimize loading time.
# - LT_UPDATE_MODELS=true
# - LT_LOAD_ONLY=en,fr
volumes:
- ./libretranslate_api_keys:/app/db
# Keep the models in a docker volume, to avoid re-downloading on startup
- ./libretranslate_models:/home/libretranslate/.local:rw
przed odpaleniem wykonać:
Kod:
mkdir -p /libretranslate_api_keys ./libretranslate_models
sudo chown -R 1032:nogroup /libretranslate_api_keys ./libretranslate_models
przy poprawnym odpaleniu , log będzie wyglądał tak:
co działa:
czy tam przetłumaczy pliki:
Obecnie - wszystkie dostępne języki ważą 10 GB.
a co można z tym zrobić ? Powiedzieć Subtitle Edit GitHub - SubtitleEdit/subtitleedit: the subtitle editor :) - przetłumacz mi te bzdury na Polski !