From 0cbbdb7716172f8cafdbd9166a0e9485340d483d Mon Sep 17 00:00:00 2001 From: vdbhb59 Date: Fri, 22 Aug 2025 19:42:51 +0530 Subject: [PATCH] Synced --- docker-compose.cuda.yml | 2 ++ docker-compose.yml | 2 ++ libretranslate/manage.py | 2 +- libretranslate/templates/index.html | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.cuda.yml b/docker-compose.cuda.yml index 7d1c5b4..6d3d7ba 100644 --- a/docker-compose.cuda.yml +++ b/docker-compose.cuda.yml @@ -23,6 +23,8 @@ services: - driver: nvidia count: 1 capabilities: [gpu] + ## Uncomment this for logging in docker compose logs + # tty: true # './venv/bin/python is not implemented in the cuda docker yet # healthcheck: # test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py'] diff --git a/docker-compose.yml b/docker-compose.yml index 0b095ab..f3db987 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,8 @@ services: 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 # command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500 ## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys diff --git a/libretranslate/manage.py b/libretranslate/manage.py index 5ba8fd4..a24a74d 100644 --- a/libretranslate/manage.py +++ b/libretranslate/manage.py @@ -34,7 +34,7 @@ def manage(): ) keys_remove_parser = keys_subparser.add_parser( - "remove", help="Remove API keys to database" + "remove", help="Remove API keys from database" ) keys_remove_parser.add_argument("key", type=str, help="API Key") diff --git a/libretranslate/templates/index.html b/libretranslate/templates/index.html index e288cec..e9630ca 100644 --- a/libretranslate/templates/index.html +++ b/libretranslate/templates/index.html @@ -72,7 +72,7 @@ {% if get_api_key_link %}
  • {{ _h("Get API Key") }}
  • {% endif %} -
  • {{ _h("GitHub") }}
  • +
  • {{ _h("GitHub") }}
  • {% if api_keys %}
  • vpn_key
  • {% endif %}