главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorArgos Open Tech <48267258+argosopentech@users.noreply.github.com>2023-10-04 17:31:00 -0500
committerGitHub <noreply@github.com>2023-10-04 17:31:00 -0500
commit47c5706beafe30d0c7f8f084154e4baa2490d4cb (patch)
treec86da24a0e9badc2429279b48a0d41ad7b9803c5 /update.sh
parent53696108b35d4ccdf365065b93334dd8bdfebe3a (diff)
Create update.sh
Add script to update LibreTranslate code and models https://github.com/argosopentech/LibreTranslate-init/issues/13
Diffstat (limited to 'update.sh')
-rw-r--r--update.sh6
1 files changed, 6 insertions, 0 deletions
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