Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ with gr.Blocks() as demo:
|
|
35 |
btn = gr.Button("Text-To-Speech")
|
36 |
output_audio = gr.Audio(label="Speech Output")
|
37 |
|
38 |
-
text.submit(fn=tts, inputs=[text, model, voice], outputs=output_audio, api_name="tts", concurrency_limit=None)
|
39 |
-
btn.click(fn=tts, inputs=[text, model, voice], outputs=output_audio, api_name="tts", concurrency_limit=None)
|
40 |
|
41 |
demo.launch()
|
|
|
35 |
btn = gr.Button("Text-To-Speech")
|
36 |
output_audio = gr.Audio(label="Speech Output")
|
37 |
|
38 |
+
text.submit(fn=tts, inputs=[text, model, voice, api_key], outputs=output_audio, api_name="tts", concurrency_limit=None)
|
39 |
+
btn.click(fn=tts, inputs=[text, model, voice, api_key], outputs=output_audio, api_name="tts", concurrency_limit=None)
|
40 |
|
41 |
demo.launch()
|