Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=[]
|
| 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()
|