Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def refresh_examplar(option: str):
|
|
72 |
|
73 |
|
74 |
def clear_text():
|
75 |
-
return "", pd.DataFrame(), gr.Radio(label="Constructions", choices=[])
|
76 |
|
77 |
|
78 |
with gr.Blocks() as demo:
|
@@ -98,7 +98,7 @@ with gr.Blocks() as demo:
|
|
98 |
cons_display = gr.Dataframe()
|
99 |
|
100 |
parser_button.click(fn=parse_text, inputs=[input_text], outputs=[enc_display, cxs_display, cons_display])
|
101 |
-
clear_buttton.click(fn=clear_text, inputs=[], outputs=[input_text, enc_display, cxs_display])
|
102 |
dataset.click(fn=fill_input_box, inputs=dataset, outputs=input_text)
|
103 |
cxs_display.select(refresh_examplar, inputs=[cxs_display], outputs=cons_display)
|
104 |
|
|
|
72 |
|
73 |
|
74 |
def clear_text():
|
75 |
+
return "", pd.DataFrame(), gr.Radio(label="Constructions", choices=[]), pd.DataFrame()
|
76 |
|
77 |
|
78 |
with gr.Blocks() as demo:
|
|
|
98 |
cons_display = gr.Dataframe()
|
99 |
|
100 |
parser_button.click(fn=parse_text, inputs=[input_text], outputs=[enc_display, cxs_display, cons_display])
|
101 |
+
clear_buttton.click(fn=clear_text, inputs=[], outputs=[input_text, enc_display, cxs_display, cons_display])
|
102 |
dataset.click(fn=fill_input_box, inputs=dataset, outputs=input_text)
|
103 |
cxs_display.select(refresh_examplar, inputs=[cxs_display], outputs=cons_display)
|
104 |
|