csukuangfj commited on
Commit
baccd2a
·
1 Parent(s): 82392bb
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -121,9 +121,9 @@ def _get_vits_ljs(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
121
 
122
  @lru_cache(maxsize=10)
123
  def _get_kokoro(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
124
- assert repo_id in ("csukuangfj/kokoro-en-v0_19",)
125
  data_dir = "/tmp/espeak-ng-data"
126
  repo_id = repo_id.split("|")[0]
 
127
 
128
  model = get_file(
129
  repo_id=repo_id,
 
121
 
122
  @lru_cache(maxsize=10)
123
  def _get_kokoro(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
 
124
  data_dir = "/tmp/espeak-ng-data"
125
  repo_id = repo_id.split("|")[0]
126
+ assert repo_id in ("csukuangfj/kokoro-en-v0_19",), repo_id
127
 
128
  model = get_file(
129
  repo_id=repo_id,