Browse Source

Preload Thai LLM.

scossu 7 months ago
parent
commit
3e35029364
1 changed files with 3 additions and 0 deletions
  1. 3 0
      entrypoint.sh

+ 3 - 0
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