Update app.py
Browse filesSigned-off-by: Michael_Xu <[email protected]>
app.py
CHANGED
@@ -141,6 +141,7 @@ with gr.Blocks() as demo:
|
|
141 |
dataset.click(fn=fill_input_box, inputs=dataset, outputs=input_text)
|
142 |
clear_buttton.click(fn=clear_text, inputs=[], outputs=[input_text, enc_display, cxs_display, cons_display])
|
143 |
parser_button.click(fn=parse_text, inputs=[input_text, language_radio, version_radio], outputs=[enc_display, cxs_display, cons_display])
|
|
|
144 |
cxs_display.change(refresh_examplar, inputs=[cxs_display, language_radio, version_radio], outputs=cons_display)
|
145 |
|
146 |
|
|
|
141 |
dataset.click(fn=fill_input_box, inputs=dataset, outputs=input_text)
|
142 |
clear_buttton.click(fn=clear_text, inputs=[], outputs=[input_text, enc_display, cxs_display, cons_display])
|
143 |
parser_button.click(fn=parse_text, inputs=[input_text, language_radio, version_radio], outputs=[enc_display, cxs_display, cons_display])
|
144 |
+
input_text.submit(fn=parse_text, inputs=[input_text, language_radio, version_radio], outputs=[enc_display, cxs_display, cons_display])
|
145 |
cxs_display.change(refresh_examplar, inputs=[cxs_display, language_radio, version_radio], outputs=cons_display)
|
146 |
|
147 |
|