hexgrad commited on
Commit
64fb7dd
·
verified ·
1 Parent(s): 123602a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -202,7 +202,7 @@ def generate(text, voice, ps=None, speed=1, reduce_noise=0.5, opening_cut=4000,
202
  return _generate(text, voice, ps, speed, opening_cut, closing_cut, ease_in, ease_out, use_gpu)
203
 
204
  def _generate(text, voice, ps, speed, opening_cut, closing_cut, ease_in, ease_out, use_gpu):
205
- if voice not in VOICES:
206
  voice = 'af'
207
  ps = ps or phonemize(text, voice)
208
  tokens = tokenize(ps)
 
202
  return _generate(text, voice, ps, speed, opening_cut, closing_cut, ease_in, ease_out, use_gpu)
203
 
204
  def _generate(text, voice, ps, speed, opening_cut, closing_cut, ease_in, ease_out, use_gpu):
205
+ if voice not in VOICES['cpu']:
206
  voice = 'af'
207
  ps = ps or phonemize(text, voice)
208
  tokens = tokenize(ps)