diff --git a/deploy_lang.sh b/deploy_lang.sh index 5fee7a3..1409b26 100755 --- a/deploy_lang.sh +++ b/deploy_lang.sh @@ -7,7 +7,7 @@ echo "=== build ===" ~/lang/.venv/bin/python3 ~/lang/build.sh echo "=== inject API key ===" -KEY=$(cat ~/lang/token.txt) +KEY=$(cat ~/lang/token_ru.txt) python3 -c " h = open('$HOME/lang/dist/index.html').read() h = h.replace(\"const GROQ_API_KEY = '';\", \"const GROQ_API_KEY = '$KEY';\") diff --git a/dist/index.html b/dist/index.html index 3fd5635..77f2d5b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -250,49 +250,61 @@ async function playHistorySyl(recId, sylIdx, total) {