hi !
i see several models available Models – Google Drive
for my language.
how to change them at start ? i.e. how to load (not install) specific model in inference ?
hi !
i see several models available Models – Google Drive
for my language.
how to change them at start ? i.e. how to load (not install) specific model in inference ?
You can use the --load-only
option to select models
thanks.
but in python ?
import pathlib
import argostranslate.package
package_path = pathlib.Path("/root/translate-en_it-2_0.argosmodel")
argostranslate.package.install_from_path(package_path)
https://argos-translate.readthedocs.io/en/latest/source/examples.html#install-package-from-file-path