Download run_local.sh from Edge0/Audio8-ASR-0.1B-onnx-runtime: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/Edge0/Audio8-ASR-0.1B-onnx-runtime/resolve/5b6d058a54853700223dd23cb4fe466b86c8fece/run_local.sh
- Command line
-
hf download hf://Edge0/Audio8-ASR-0.1B-onnx-runtime@5b6d058a54853700223dd23cb4fe466b86c8fece/run_local.sh
-
curl -L -o run_local.sh https://huggingface.co/Edge0/Audio8-ASR-0.1B-onnx-runtime/resolve/5b6d058a54853700223dd23cb4fe466b86c8fece/run_local.sh
1.03 kB
| set -euo pipefail | |
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| BUNDLE_DIR="${1:-${AUDIO8_ASR_BUNDLE:-$SCRIPT_DIR/model_bundle}}" | |
| HOST="${HOST:-127.0.0.1}" | |
| PORT="${PORT:-7860}" | |
| ORT_PROVIDER="${ORT_PROVIDER:-CPUExecutionProvider}" | |
| ASR_BACKEND="${ASR_BACKEND:-auto}" | |
| ASR_CACHE_PRECISION="${ASR_CACHE_PRECISION:-int8}" | |
| ASR_AUDIO_PRECISION="${ASR_AUDIO_PRECISION:-int8}" | |
| PYTHON_BIN="${PYTHON:-python3}" | |
| cd "$SCRIPT_DIR" | |
| export NO_PROXY="${NO_PROXY:+$NO_PROXY,}127.0.0.1,localhost,::1" | |
| export no_proxy="${no_proxy:+$no_proxy,}127.0.0.1,localhost,::1" | |
| if ! "$PYTHON_BIN" -c 'import sys; raise SystemExit(0 if sys.version_info >= (3, 10) else 1)'; then | |
| echo "Python 3.10+ is required. Create/activate a newer venv, then rerun this script." >&2 | |
| exit 1 | |
| fi | |
| exec "$PYTHON_BIN" server.py \ | |
| --bundle_dir "$BUNDLE_DIR" \ | |
| --backend "$ASR_BACKEND" \ | |
| --host "$HOST" \ | |
| --port "$PORT" \ | |
| --provider "$ORT_PROVIDER" \ | |
| --cache_precision "$ASR_CACHE_PRECISION" \ | |
| --audio_precision "$ASR_AUDIO_PRECISION" | |