Tonic commited on
Commit
d28f8c0
1 Parent(s): c797359

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -596,7 +596,9 @@ def create_interface():
596
  text_button.click(process_and_query, inputs=[input_language, audio_input, image_input, text_input], outputs=[text_output, hallucination_output])
597
 
598
  clear_button = gr.Button("Clear")
599
- clear_button.click(clear, inputs=[], outputs=[])
 
 
600
 
601
  return iface
602
 
 
596
  text_button.click(process_and_query, inputs=[input_language, audio_input, image_input, text_input], outputs=[text_output, hallucination_output])
597
 
598
  clear_button = gr.Button("Clear")
599
+ # Link the clear function to the clear button
600
+ clear_button.click(clear, inputs=[input_language, audio_input, image_input, text_input], outputs=[input_language, audio_input, image_input, text_input, voice_accordion])
601
+
602
 
603
  return iface
604