hexgrad commited on
Commit
679b29e
·
verified ·
1 Parent(s): c1057fc

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -417,9 +417,9 @@ def lf_generate(segments, voice, speed=1, trim=0, pad_between=0, use_gpu=True):
417
  for i in range(0, len(token_lists), batch_size):
418
  try:
419
  if use_gpu:
420
- outs = lf_forward_gpu(token_lists[i:i+batch_size], voice, speed)
421
  else:
422
- outs = lf_forward(token_lists[i:i+batch_size], voice, speed)
423
  except gr.exceptions.Error as e:
424
  if wavs:
425
  gr.Warning(str(e))
 
417
  for i in range(0, len(token_lists), batch_size):
418
  try:
419
  if use_gpu:
420
+ outs = lf_forward_gpu(token_lists[i:i+batch_size], voices, speed)
421
  else:
422
+ outs = lf_forward(token_lists[i:i+batch_size], voices, speed)
423
  except gr.exceptions.Error as e:
424
  if wavs:
425
  gr.Warning(str(e))