jonathanjordan21 commited on
Commit
e6b248a
·
verified ·
1 Parent(s): 8c6addf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def forward_gpu(ps, ref_s, speed):
25
  return models[True](ps, ref_s, speed)
26
 
27
  def generate_first(text, voice='af_heart', speed=1, use_gpu=CUDA_AVAILABLE):
28
- text = f"[_]({indo_to_ipa(text)})"
29
  text = text if CHAR_LIMIT is None else text.strip()[:CHAR_LIMIT]
30
  print("[TEST]", text)
31
  pipeline = pipelines[voice[0]]
@@ -54,6 +54,7 @@ def generate_first(text, voice='af_heart', speed=1, use_gpu=CUDA_AVAILABLE):
54
  else:
55
  raise gr.Error(e)
56
  return (24000, audio.numpy()), ps
 
57
  return None, ''
58
 
59
  # Arena API
 
25
  return models[True](ps, ref_s, speed)
26
 
27
  def generate_first(text, voice='af_heart', speed=1, use_gpu=CUDA_AVAILABLE):
28
+ # text = f"[_]({indo_to_ipa(text)})"
29
  text = text if CHAR_LIMIT is None else text.strip()[:CHAR_LIMIT]
30
  print("[TEST]", text)
31
  pipeline = pipelines[voice[0]]
 
54
  else:
55
  raise gr.Error(e)
56
  return (24000, audio.numpy()), ps
57
+ print("[RETURN NONE]")
58
  return None, ''
59
 
60
  # Arena API