igortamara commited on
Commit
2a7a09c
·
1 Parent(s): 16f34fe

bugfix - Spanish does not have lexicon

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -15,7 +15,6 @@ if not IS_DUPLICATE:
15
  CHAR_LIMIT = None if IS_DUPLICATE else 5000
16
  models = {gpu: KModel().to('cuda' if gpu else 'cpu').eval() for gpu in [False] + ([True] if CUDA_AVAILABLE else [])}
17
  pipelines = {lang_code: KPipeline(lang_code=lang_code, model=False) for lang_code in 'e'}
18
- pipelines['e'].g2p.lexicon.golds['kokoro'] = 'kˈOkəɹO'
19
 
20
  @spaces.GPU(duration=30)
21
  def forward_gpu(ps, ref_s, speed):
 
15
  CHAR_LIMIT = None if IS_DUPLICATE else 5000
16
  models = {gpu: KModel().to('cuda' if gpu else 'cpu').eval() for gpu in [False] + ([True] if CUDA_AVAILABLE else [])}
17
  pipelines = {lang_code: KPipeline(lang_code=lang_code, model=False) for lang_code in 'e'}
 
18
 
19
  @spaces.GPU(duration=30)
20
  def forward_gpu(ps, ref_s, speed):