Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add packages torrent 2022-04-30 #432

Merged

Conversation

milahu
Copy link
Contributor

@milahu milahu commented Jul 14, 2024

make the torrent more efficient in terms of disk space

the old torrents require unpacking archives
which needs double the disk space to install and seed all models

this torrent allows to install via symlinks

packages/readme.txt

to install these packages, run

mkdir -p $HOME/.local/share/argos-translate/packages
ln -sr packages/* $HOME/.local/share/argos-translate/packages



the files in packages/ are the result of installing the model files from the torrent
magnet:?xt=urn:btih:d1fb14d1b0f25e2e6f49d6dfd4ea761c445ad0d0&dn=Argos-Translate-LibreTranslate-2022-04-30
magnet:?xt=urn:btmh:12203d4464d5ccd13dfa5d1829f7c36f4b512c07e1d3086c1f7b9bb706864b82ef6f&dn=Argos-Translate-LibreTranslate-2022-04-30

#!/usr/bin/env python3
# install argos models to $HOME/.local/share/argos-translate/packages/
import argostranslate.package
import os
models_dir = os.environ["HOME"] + "/torrent/done/Argos-Translate-LibreTranslate-2022-04-30/models"
for name in os.listdir(models_dir):
    path = models_dir + "/" + name
    argostranslate.package.install_from_path(path)

@argosopentech argosopentech merged commit 4d6c125 into argosopentech:master Aug 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants