Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,13 +31,13 @@ phoneme_vocab = config['vocab']
|
|
31 |
# Step 3: Download the model and voice file from Hugging Face Hub
|
32 |
model_repo = "onnx-community/Kokoro-82M-v1.0-ONNX"
|
33 |
model_name = "onnx/model_q8f16.onnx"
|
34 |
-
|
35 |
local_dir = "."
|
36 |
|
37 |
# Download the model and voice file
|
38 |
snapshot_download(
|
39 |
repo_id=model_repo,
|
40 |
-
allow_patterns=[model_name,
|
41 |
local_dir=local_dir
|
42 |
)
|
43 |
|
|
|
31 |
# Step 3: Download the model and voice file from Hugging Face Hub
|
32 |
model_repo = "onnx-community/Kokoro-82M-v1.0-ONNX"
|
33 |
model_name = "onnx/model_q8f16.onnx"
|
34 |
+
voice_file_pattern = "*.bin"
|
35 |
local_dir = "."
|
36 |
|
37 |
# Download the model and voice file
|
38 |
snapshot_download(
|
39 |
repo_id=model_repo,
|
40 |
+
allow_patterns=[model_name, voice_file_pattern],
|
41 |
local_dir=local_dir
|
42 |
)
|
43 |
|