Spaces:
Runtime error
Runtime error
zhuowen
commited on
Commit
•
f804332
1
Parent(s):
0284d43
Update app.py
Browse files
app.py
CHANGED
@@ -98,11 +98,11 @@ if __name__ == "__main__":
|
|
98 |
btn = gr.Button("Generate!")
|
99 |
btn.click(tts_calback,
|
100 |
inputs=[textbox, duration_slider],
|
101 |
-
outputs=[text_output, audio_output])
|
102 |
gr.Examples(
|
103 |
examples=example,
|
104 |
inputs=[textbox, duration_slider],
|
105 |
outputs=[text_output, audio_output],
|
106 |
fn=tts_calback
|
107 |
)
|
108 |
-
app.queue(concurrency_count=3).launch(show_api=False, share=args.share)
|
|
|
98 |
btn = gr.Button("Generate!")
|
99 |
btn.click(tts_calback,
|
100 |
inputs=[textbox, duration_slider],
|
101 |
+
outputs=[text_output, audio_output],api_name="voice")
|
102 |
gr.Examples(
|
103 |
examples=example,
|
104 |
inputs=[textbox, duration_slider],
|
105 |
outputs=[text_output, audio_output],
|
106 |
fn=tts_calback
|
107 |
)
|
108 |
+
app.queue(concurrency_count=3,api_open=True).launch(show_api=False, share=args.share)
|