thak123 commited on
Commit
5f95d87
·
1 Parent(s): a7c8bb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -54,6 +54,8 @@ def text_to_speech(text_to_play):
54
 
55
  # # Launch the Gradio interface
56
  # iface.launch()
 
 
57
 
58
  with gr.Blocks() as demo:
59
  html = gr.HTML()
@@ -63,4 +65,8 @@ with gr.Blocks() as demo:
63
  btn = gr.Button("OK")
64
  btn.click(text_to_speech, inputs=[text], outputs=[html])
65
 
 
 
 
 
66
  demo.launch()
 
54
 
55
  # # Launch the Gradio interface
56
  # iface.launch()
57
+ def clear():
58
+ return None
59
 
60
  with gr.Blocks() as demo:
61
  html = gr.HTML()
 
65
  btn = gr.Button("OK")
66
  btn.click(text_to_speech, inputs=[text], outputs=[html])
67
 
68
+
69
+ clear_btn = gr.Button(value="Clear")
70
+ clear_btn.click(clear, inputs=[], outputs=[audio_input])
71
+
72
  demo.launch()