Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
|
80 |
download_button = gr.DownloadButton(label="Download Audio", value=None, visible=True)
|
81 |
error_box = gr.Textbox(label="WARNING", value="Input box cannot be blank!!", visible=False, container=True)
|
82 |
|
83 |
-
download_button.click(download_file,
|
84 |
btn_clear.add(audio_output)
|
85 |
btn.click(text_to_speech, inputs=[text_input, audio_input_mic, audio_input_file], outputs=audio_output)
|
86 |
btn.click(show_error, text_input, [error_box, audio_output])
|
|
|
80 |
download_button = gr.DownloadButton(label="Download Audio", value=None, visible=True)
|
81 |
error_box = gr.Textbox(label="WARNING", value="Input box cannot be blank!!", visible=False, container=True)
|
82 |
|
83 |
+
download_button.click(download_file, audio_output, download_button)
|
84 |
btn_clear.add(audio_output)
|
85 |
btn.click(text_to_speech, inputs=[text_input, audio_input_mic, audio_input_file], outputs=audio_output)
|
86 |
btn.click(show_error, text_input, [error_box, audio_output])
|