Spaces:
Runtime error
Runtime error
NeuronZero
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,7 @@ with gr.Blocks() as demo:
|
|
58 |
example_dropdown.change(lambda x: x, inputs=example_dropdown, outputs=note)
|
59 |
highlight = gr.HighlightedText(label="NER", combine_adjacent=True)
|
60 |
table = gr.Dataframe(headers=["Entity", "Count"])
|
61 |
-
|
62 |
-
submit
|
63 |
-
note.submit(run_ner, [note], [highlight, table, plot])
|
64 |
|
65 |
demo.launch()
|
|
|
58 |
example_dropdown.change(lambda x: x, inputs=example_dropdown, outputs=note)
|
59 |
highlight = gr.HighlightedText(label="NER", combine_adjacent=True)
|
60 |
table = gr.Dataframe(headers=["Entity", "Count"])
|
61 |
+
submit.click(run_ner, [note], [highlight, table])
|
62 |
+
note.submit(run_ner, [note], [highlight, table])
|
|
|
63 |
|
64 |
demo.launch()
|