Upload app.py
Browse files
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
|
215 |
-
return _generate(text, voice, ps, speed, trim,
|
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']:
|