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