Isidorophp commited on
Commit
37f0256
·
verified ·
1 Parent(s): 019cdd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -117,7 +117,7 @@ with gr.Blocks(gr.themes.Origin()) as demo:
117
  user_input = gr.TextArea(label="Your Question", scale=1, value="If there is any spell to encapsulate you as a piece of the cog, where Hermione is to everyone's favorite magical trio, it has to be...?")
118
  output_audio = gr.Audio(label="Hermione's Response", type="filepath", interactive=False, autoplay=True, scale=2, elem_classes="audio")
119
  with gr.Row(scale=2):
120
- clear_button = gr.ClearButton([demo.inputs[0], demo.outputs[0]])
121
  translate_btn = gr.Button("Submit", variant="primary")
122
  translate_btn.click(fn=generate1, inputs=[user_voice, user_input], outputs=output_audio, api_name="translate")
123
 
 
117
  user_input = gr.TextArea(label="Your Question", scale=1, value="If there is any spell to encapsulate you as a piece of the cog, where Hermione is to everyone's favorite magical trio, it has to be...?")
118
  output_audio = gr.Audio(label="Hermione's Response", type="filepath", interactive=False, autoplay=True, scale=2, elem_classes="audio")
119
  with gr.Row(scale=2):
120
+ clear_button = gr.ClearButton([demo.user_input [""], demo.output_audio[0]])
121
  translate_btn = gr.Button("Submit", variant="primary")
122
  translate_btn.click(fn=generate1, inputs=[user_voice, user_input], outputs=output_audio, api_name="translate")
123