Add Whisper offline loading for air-gapped servers.
Pre-download via HF mirror scripts so inner-network deploys avoid Hub Network is unreachable errors. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -361,9 +361,20 @@ cd /opt/Trading_Studio
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
### 6.1 Faster-Whisper
|
||||
### 6.1 Faster-Whisper(必须预下载)
|
||||
|
||||
随 `requirements.txt` 安装。首次运行会自动下载 `small` 模型(约 500MB)至 HuggingFace 缓存。
|
||||
随 `requirements.txt` 安装。**内网服务器无法访问 HuggingFace 时会报 `Network is unreachable`。**
|
||||
|
||||
部署后执行(推荐与 ChatTTS 一起):
|
||||
|
||||
```bash
|
||||
cd /opt/Trading_Studio
|
||||
bash scripts/download_all_models.sh
|
||||
# 或仅 Whisper: bash scripts/download_whisper_models.sh small
|
||||
pm2 restart trading_studio
|
||||
```
|
||||
|
||||
模型目录:`/opt/Trading_Studio/models/whisper/small/`(含 `model.bin`)。
|
||||
|
||||
### 6.2 ChatTTS(必须预下载,勿依赖 GitHub)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user