Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -730,12 +730,12 @@ class TranslationApp:
|
|
| 730 |
correct_trans # keep text on error
|
| 731 |
)
|
| 732 |
|
| 733 |
-
|
| 734 |
-
|
| 735 |
fn=update_visibility,
|
| 736 |
inputs=input_mode,
|
| 737 |
outputs=[input_text, audio_input, file_input, extracted_text, output_text]
|
| 738 |
-
|
| 739 |
|
| 740 |
# Chain: Process → Translate → Store context → Wait for feedback
|
| 741 |
process_event = translate_btn.click(
|
|
|
|
| 730 |
correct_trans # keep text on error
|
| 731 |
)
|
| 732 |
|
| 733 |
+
# Connect events
|
| 734 |
+
input_mode.change(
|
| 735 |
fn=update_visibility,
|
| 736 |
inputs=input_mode,
|
| 737 |
outputs=[input_text, audio_input, file_input, extracted_text, output_text]
|
| 738 |
+
)
|
| 739 |
|
| 740 |
# Chain: Process → Translate → Store context → Wait for feedback
|
| 741 |
process_event = translate_btn.click(
|