File size: 1,005 Bytes
3def995 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
---
license: mit
---
How to download:
1. Install required package:
```python
pip install huggingface_hub
```
2. Download models (this will download to your current directory):
```python
from huggingface_hub import snapshot_download
import os
# Get current directory
current_dir = os.getcwd()
# Download VOSK models
print("Downloading vosk_models...")
snapshot_download(
repo_id="CCRss/qazllm_deployment",
repo_type="model",
allow_patterns="vosk_models/*",
local_dir=current_dir,
local_dir_use_symlinks=False
)
# Download Piper models
print("Downloading piper_models...")
snapshot_download(
repo_id="CCRss/qazllm_deployment",
repo_type="model",
allow_patterns="piper_models/*",
local_dir=current_dir,
local_dir_use_symlinks=False
)
```
This will create the following structure in your current directory:
```
./vosk_models/
βββ vosk-model-en-us-0.22-lgraph/
βββ vosk-model-kz-0.15/
βββ vosk-model-small-ru-0.22/
./piper_models/
``` |