hexgrad commited on
Commit
8bd8fb1
·
verified ·
1 Parent(s): c95550e

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -293,6 +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
  return (None, '')
297
  voices = resolve_voices(voice, warn=ps)
298
  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(), voices, len(ps), use_gpu, sk)
297
  return (None, '')
298
  voices = resolve_voices(voice, warn=ps)
299
  speed = clamp_speed(speed)