bcci commited on
Commit
3a0aedb
·
verified ·
1 Parent(s): 0efe118

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -31,12 +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 = "voices"
35
  local_dir = "."
36
 
37
  # Download the model and voice file
38
  snapshot_download(
39
  repo_id=model_repo,
 
40
  local_dir=local_dir
41
  )
42
 
 
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