Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -488,12 +488,12 @@ with gr.Blocks(title="Writoo AI V2") as demo:
|
|
| 488 |
run_btn = gr.Button(value="Generate Audio", variant="primary")
|
| 489 |
|
| 490 |
with gr.Column():
|
| 491 |
-
output_audio = gr.Audio(type="filepath", label="Audio Output")
|
| 492 |
error_output = gr.Textbox(label="Error Message", interactive=False)
|
|
|
|
| 493 |
|
| 494 |
|
| 495 |
language.change(get_speakers, inputs=[language], outputs=[speaker, tashkeel_checkbox])
|
| 496 |
-
run_btn.click(tts_wrapper, inputs=[input_text, language, speaker, tashkeel_checkbox], outputs=[error_output,
|
| 497 |
|
| 498 |
if __name__ == "__main__":
|
| 499 |
demo.queue().launch(share=False)
|
|
|
|
| 488 |
run_btn = gr.Button(value="Generate Audio", variant="primary")
|
| 489 |
|
| 490 |
with gr.Column():
|
|
|
|
| 491 |
error_output = gr.Textbox(label="Error Message", interactive=False)
|
| 492 |
+
output_audio = gr.Audio(type="filepath", label="Audio Output")
|
| 493 |
|
| 494 |
|
| 495 |
language.change(get_speakers, inputs=[language], outputs=[speaker, tashkeel_checkbox])
|
| 496 |
+
run_btn.click(tts_wrapper, inputs=[input_text, language, speaker, tashkeel_checkbox], outputs=[error_output, output_audio])
|
| 497 |
|
| 498 |
if __name__ == "__main__":
|
| 499 |
demo.queue().launch(share=False)
|