Steveeeeeeen HF staff commited on
Commit
7504243
·
verified ·
1 Parent(s): 15994b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -186,6 +186,7 @@ def infer(sample_audio_path, target_text, progress=gr.Progress()):
186
 
187
  return (16000, gen_wav[0, 0, :].cpu().numpy())
188
 
 
189
  def text_only_infer(target_text, progress=gr.Progress()):
190
  """Function to generate speech directly from text without a reference voice"""
191
  if len(target_text) == 0:
 
186
 
187
  return (16000, gen_wav[0, 0, :].cpu().numpy())
188
 
189
+ @spaces.GPU(duration=60)
190
  def text_only_infer(target_text, progress=gr.Progress()):
191
  """Function to generate speech directly from text without a reference voice"""
192
  if len(target_text) == 0: