hexgrad commited on
Commit
9845560
·
verified ·
1 Parent(s): 60d8023

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -211,8 +211,8 @@ def forward_gpu(tokens, voice, speed):
211
  return forward(tokens, voice, speed, device='cuda')
212
 
213
  # Must be backwards compatible with https://huggingface.co/spaces/Pendrokar/TTS-Spaces-Arena
214
- def generate(text, voice, ps, speed, _reduce_noise, trim, _closing_cut, _ease_in, _ease_out, _pad_before, _pad_after, use_gpu):
215
- return _generate(text, voice, ps, speed, trim, use_gpu)
216
 
217
  def _generate(text, voice, ps, speed, trim, use_gpu):
218
  if voice not in VOICES['cpu']:
 
211
  return forward(tokens, voice, speed, device='cuda')
212
 
213
  # Must be backwards compatible with https://huggingface.co/spaces/Pendrokar/TTS-Spaces-Arena
214
+ def generate(text, voice, ps, speed, _reduce_noise, trim, _closing_cut, _ease_in, _ease_out, _pad_before, _pad_after):
215
+ return _generate(text, voice, ps, speed, trim, 'auto')
216
 
217
  def _generate(text, voice, ps, speed, trim, use_gpu):
218
  if voice not in VOICES['cpu']: