Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
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],
|
421 |
else:
|
422 |
-
outs = lf_forward(token_lists[i:i+batch_size],
|
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))
|