Files
infra-docker-configs/servers/tools-pve/asr-pipeline/bin/asr-refine
T
Codex 3c70861463
Build image / build (push) Canceled after 0s
Build ASR Pipeline / image (push) Canceled after 0s
feat(asr-pipeline): merge PR #1 webauth/CSRF/locking hardening and web_password fallback
2026-11-02 06:37:33 -08:00

20 lines
703 B
Bash
Executable File

#!/usr/bin/env bash
# Standalone ASR post-processing entrypoint.
#
# Independent of Claude Code / opencode / any agent runtime: it uses its own venv
# and talks to the model provider over plain HTTPS. Safe to call from systemd,
# cron, or a shell that has nothing but bash.
set -euo pipefail
ROOT="$(cd "$(dirname "$(readlink -f "$0")")/.." && pwd)"
PY="$ROOT/.venv/bin/python"
if [ ! -x "$PY" ]; then
echo "venv missing at $PY" >&2
echo "create it with:" >&2
echo " uv venv $ROOT/.venv --python 3.13" >&2
echo " uv pip install --python $PY pypinyin rapidfuzz numpy" >&2
exit 2
fi
export PYTHONPATH="$ROOT${PYTHONPATH:+:$PYTHONPATH}"
export PYTHONUNBUFFERED=1
exec "$PY" -m asrpipe.cli "$@"