Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ct/libretranslate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function update_script() {
exit
fi

setup_uv
PYTHON_VERSION="3.12" setup_uv

if check_for_gh_release "libretranslate" "LibreTranslate/LibreTranslate"; then
msg_info "Stopping Service"
Expand All @@ -39,7 +39,7 @@ function update_script() {
msg_info "Updating LibreTranslate"
cd /opt/libretranslate
source .venv/bin/activate
$STD pip install -U libretranslate
$STD uv pip install -U libretranslate
msg_ok "Updated LibreTranslate"

msg_info "Starting Service"
Expand Down
4 changes: 2 additions & 2 deletions install/libretranslate-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $STD apt install -y \
python3-icu
msg_ok "Setup Python3"

setup_uv
PYTHON_VERSION="3.12" setup_uv
fetch_and_deploy_gh_release "libretranslate" "LibreTranslate/LibreTranslate"

msg_info "Setup LibreTranslate (Patience)"
Expand All @@ -42,7 +42,7 @@ if [[ -z "$TORCH_VERSION" ]]; then
TORCH_VERSION="2.5.0"
fi
cd /opt/libretranslate
$STD uv venv .venv
$STD uv venv .venv --python 3.12
$STD source .venv/bin/activate
$STD uv pip install --upgrade pip setuptools
$STD uv pip install Babel==2.12.1
Expand Down