LibreTranslate_Kabyle / install_model.py
axxam's picture
Update install_model.py
5acccf1 verified
raw
history blame contribute delete
298 Bytes
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.")