import argostranslate.package | |
import os | |
model_path = "/app/models/en_kab_comp" | |
if os.path.isdir(model_path): | |
package = argostranslate.package.Package(model_path) | |
argostranslate.package.install_from_path(package) | |
print("Kabyle model installed.") | |
else: | |
print("Model path not found.") |