Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -246,7 +246,7 @@ def generate(text, voice='af', ps=None, speed=1, trim=3000, use_gpu='auto', sh=N
|
|
246 |
tokens = tokens[:510]
|
247 |
ps = ''.join(next(k for k, v in VOCAB.items() if i == v) for i in tokens)
|
248 |
use_gpu = len(ps) > 99 if use_gpu == 'auto' else use_gpu
|
249 |
-
print('🔥', datetime.now(), text, voices, ps, use_gpu,
|
250 |
try:
|
251 |
if use_gpu:
|
252 |
out = forward_gpu(tokens, voices, speed)
|
|
|
246 |
tokens = tokens[:510]
|
247 |
ps = ''.join(next(k for k, v in VOCAB.items() if i == v) for i in tokens)
|
248 |
use_gpu = len(ps) > 99 if use_gpu == 'auto' else use_gpu
|
249 |
+
print('🔥', datetime.now(), text, voices, ps, use_gpu, sh)
|
250 |
try:
|
251 |
if use_gpu:
|
252 |
out = forward_gpu(tokens, voices, speed)
|