#!/bin/bash # 配置路径 BASE_DIR="/root/huggingface_echodict/KotobaASRLLM/KotobaASRLLM" SERVER_PATH="${BASE_DIR}/whisper-server" MODEL_PATH="${BASE_DIR}/ggml-kotoba-whisper-v2.0.bin" echo "启动 whisper-server 服务..." echo "执行命令: ${SERVER_PATH} -m ${MODEL_PATH} --host 127.0.0.1 --port 8081 --convert" echo "服务将运行在 http://127.0.0.1:8081/inference" # 启动进程并替换当前 shell 进程 exec "${SERVER_PATH}" \ -m "${MODEL_PATH}" \ --host "127.0.0.1" \ --port "8081" \ --convert