LibreTranslate: bump torch version (#8710)

This commit is contained in:
CanbiZ
2025-10-29 05:06:31 -07:00
committed by GitHub
parent 3fe234b021
commit ac32d7a304
2 changed files with 18 additions and 10 deletions

View File

@@ -28,21 +28,24 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
setup_uv
if check_for_gh_release "libretranslate" "LibreTranslate/LibreTranslate"; then
msg_info "Stopping $APP"
msg_info "Stopping Service"
systemctl stop libretranslate
msg_ok "Stopped $APP"
msg_ok "Stopped Service"
msg_info "Updating $APP"
msg_info "Updating LibreTranslate"
cd /opt/libretranslate
source .venv/bin/activate
$STD pip install -U libretranslate
msg_ok "Updated $APP"
msg_ok "Updated LibreTranslate"
msg_info "Starting $APP"
msg_info "Starting Service"
systemctl start libretranslate
msg_ok "Started $APP"
msg_ok "Update Successful"
msg_ok "Started Service"
msg_ok "Update Successfully!"
fi
exit
}