From 3e35029364195e02043ad73f9ec69fde74842148 Mon Sep 17 00:00:00 2001 From: scossu Date: Mon, 21 Oct 2024 22:44:24 -0400 Subject: [PATCH] Preload Thai LLM. --- entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index ccecb7f..562ffac 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,6 +14,9 @@ port=${TXL_WEBAPP_PORT:-"8000"} ./sscli admin init-db +# Preload Thai model. +python -c 'from esupar import load; load("th")' + if [ "${FLASK_ENV}" == "development" ]; then exec flask run -h $host -p $port else