File size: 529 Bytes
fbd23c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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