Tonic commited on
Commit
7106a8f
1 Parent(s): 9db4018

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -455,6 +455,7 @@ def clear(interface):
455
  interface['text_summarization'].hide()
456
  interface['results'].hide()
457
 
 
458
  def on_language_change(language, interface):
459
  if language:
460
  interface['speech_to_text'].show()
@@ -612,7 +613,7 @@ with gr.Blocks(theme='ParityError/Anime') as iface:
612
  hallucination_output = gr.Label()
613
 
614
  clear_button = gr.Button("Clear")
615
- clear_button.click(clear, inputs=[], outputs=[], args=[iface])
616
 
617
  # Initially hide all blocks except language selection
618
  iface['speech_to_text'].hide()
 
455
  interface['text_summarization'].hide()
456
  interface['results'].hide()
457
 
458
+
459
  def on_language_change(language, interface):
460
  if language:
461
  interface['speech_to_text'].show()
 
613
  hallucination_output = gr.Label()
614
 
615
  clear_button = gr.Button("Clear")
616
+ clear_button.click(clear, inputs=[iface], outputs=[])
617
 
618
  # Initially hide all blocks except language selection
619
  iface['speech_to_text'].hide()