From d8b3643da31735cf2ab9138578409b0184f2b4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sat, 23 May 2026 11:35:52 +0400 Subject: [PATCH] =?UTF-8?q?v103:=20=D0=A0=D0=90=D0=91=D0=9E=D0=A2=D0=90?= =?UTF-8?q?=D0=95=D0=A2=20=E2=80=94=20=D1=82=D1=80=D0=B0=D0=BD=D1=81=D0=BA?= =?UTF-8?q?=D1=80=D0=B8=D0=BF=D1=86=D0=B8=D1=8F=20=D1=87=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=B7=20ProxyAPI.ru=20(whisper-1),=20=D0=BA=D0=BE=D0=BD=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D1=82=D0=B0=D1=86=D0=B8=D1=8F=20webm=E2=86=92WAV?= =?UTF-8?q?=20=D0=B2=20=D0=B1=D1=80=D0=B0=D1=83=D0=B7=D0=B5=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy_lang.sh | 2 +- dist/index.html | 92 +++++++++++++---------- doc/gunicorn-timeout-bug.md | 142 ++++++++++++++++++++++++++++++++++++ js/main.js | 2 +- js/transcribe.js | 88 ++++++++++++---------- server/lang.kube5s.ru.conf | 3 + server/proxy.py | 75 ++----------------- token_ru.txt | 1 + 8 files changed, 257 insertions(+), 148 deletions(-) create mode 100644 doc/gunicorn-timeout-bug.md create mode 100644 token_ru.txt 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) {