Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -72,9 +72,11 @@ with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
|
72 |
with gr.Column():
|
73 |
btn = gr.Button("Generate", variant="primary")
|
74 |
with gr.Column():
|
75 |
-
audio_output = gr.Audio(label="Output", visible=True, autoplay=
|
|
|
76 |
error_box = gr.Textbox(label="WARNING", value="Input box cannot be blank!!", visible=False, container=True)
|
77 |
-
|
|
|
78 |
btn_clear.add(audio_output)
|
79 |
btn.click(text_to_speech, inputs=[text_input, audio_input_mic, audio_input_file], outputs=audio_output)
|
80 |
btn.click(show_error, text_input, [error_box, audio_output])
|
|
|
72 |
with gr.Column():
|
73 |
btn = gr.Button("Generate", variant="primary")
|
74 |
with gr.Column():
|
75 |
+
audio_output = gr.Audio(label="Output", visible=True, autoplay=True, show_share_button=False)
|
76 |
+
down_btn = gr.DownloadButton("Download the file", visible=False)
|
77 |
error_box = gr.Textbox(label="WARNING", value="Input box cannot be blank!!", visible=False, container=True)
|
78 |
+
|
79 |
+
down_btn.click(download_file)
|
80 |
btn_clear.add(audio_output)
|
81 |
btn.click(text_to_speech, inputs=[text_input, audio_input_mic, audio_input_file], outputs=audio_output)
|
82 |
btn.click(show_error, text_input, [error_box, audio_output])
|