hexgrad commited on
Commit
30b25ce
·
verified ·
1 Parent(s): 1abc286

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, is_space, sh)
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)