Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -293,7 +293,7 @@ def generate(text, voice='af', ps=None, speed=1, trim=0.5, use_gpu='auto', sk=No
|
|
293 |
if not sk and (text in sents or ps.strip('"') in harvsents):
|
294 |
sk = os.environ['SK']
|
295 |
if sk not in {os.environ['SK'], os.environ['ARENA']}:
|
296 |
-
print('❌', datetime.now(), text,
|
297 |
return (None, '')
|
298 |
voices = resolve_voices(voice, warn=ps)
|
299 |
speed = clamp_speed(speed)
|
|
|
293 |
if not sk and (text in sents or ps.strip('"') in harvsents):
|
294 |
sk = os.environ['SK']
|
295 |
if sk not in {os.environ['SK'], os.environ['ARENA']}:
|
296 |
+
print('❌', datetime.now(), text, voice, use_gpu, sk)
|
297 |
return (None, '')
|
298 |
voices = resolve_voices(voice, warn=ps)
|
299 |
speed = clamp_speed(speed)
|