From 47c5706beafe30d0c7f8f084154e4baa2490d4cb Mon Sep 17 00:00:00 2001 From: Argos Open Tech <48267258+argosopentech@users.noreply.github.com> Date: Wed, 4 Oct 2023 17:31:00 -0500 Subject: Create update.sh Add script to update LibreTranslate code and models https://github.com/argosopentech/LibreTranslate-init/issues/13 --- update.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 update.sh (limited to 'update.sh') diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..779c393 --- /dev/null +++ b/update.sh @@ -0,0 +1,6 @@ +cd ~/LibreTranslate-init +git pull +rm -rf ~/LibreTranslate/env +virtualenv ~/LibreTranslate/env +~/LibreTranslate/env/bin/pip install ~/LibreTranslate/ --no-cache-dir +~/LibreTranslate/env/bin/libretranslate --update-models -- cgit v1.2.3