Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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:
|