Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -271,14 +271,14 @@ def generate(text, voice='af', ps=None, speed=1, trim=3000, use_gpu='auto', sk=N
|
|
271 |
out = forward(tokens, voices, speed, sk)
|
272 |
else:
|
273 |
raise gr.Error(e)
|
274 |
-
print('🔥', datetime.now(), len(ps), use_gpu, repr(e))
|
275 |
return (None, '')
|
276 |
trim = int(trim / speed)
|
277 |
if trim > 0:
|
278 |
if trim * 2 >= len(out):
|
279 |
return (None, '')
|
280 |
out = out[trim:-trim]
|
281 |
-
print('🔥', datetime.now(), len(ps), use_gpu, len(out))
|
282 |
return ((SAMPLE_RATE, out), ps)
|
283 |
|
284 |
def toggle_autoplay(autoplay):
|
|
|
271 |
out = forward(tokens, voices, speed, sk)
|
272 |
else:
|
273 |
raise gr.Error(e)
|
274 |
+
print('🔥', datetime.now(), voices, len(ps), use_gpu, repr(e))
|
275 |
return (None, '')
|
276 |
trim = int(trim / speed)
|
277 |
if trim > 0:
|
278 |
if trim * 2 >= len(out):
|
279 |
return (None, '')
|
280 |
out = out[trim:-trim]
|
281 |
+
print('🔥', datetime.now(), voices, len(ps), use_gpu, len(out))
|
282 |
return ((SAMPLE_RATE, out), ps)
|
283 |
|
284 |
def toggle_autoplay(autoplay):
|