Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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 |
|