bcci commited on
Commit
2b9bb53
·
verified ·
1 Parent(s): 3a0aedb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- voice_file = ".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],
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