yaowenxu commited on
Commit
bdbb3f0
·
1 Parent(s): b50ea7f

Update app.py

Browse files

Signed-off-by: Michael_Xu <[email protected]>

Files changed (1) hide show
  1. app.py +1 -0
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