Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,9 @@ with demo:
|
|
25 |
sum_btn.click(get_summary, sum_input, sum_output)
|
26 |
with gr.Tab("Named Entity Recognition"):
|
27 |
ner_input = gr.Textbox(placeholder = "Enter text...", lines = 4)
|
28 |
-
ner_output = gr.Textbox()
|
|
|
|
|
29 |
ner_btn = gr.Button("Get named entities")
|
30 |
ner_btn.click(get_ner, ner_input, ner_output)
|
31 |
|
|
|
25 |
sum_btn.click(get_summary, sum_input, sum_output)
|
26 |
with gr.Tab("Named Entity Recognition"):
|
27 |
ner_input = gr.Textbox(placeholder = "Enter text...", lines = 4)
|
28 |
+
# ner_output = gr.Textbox()
|
29 |
+
ner_output = [gr.HighlightedText(label="Text with entities")]
|
30 |
+
allow_flagging = "never"
|
31 |
ner_btn = gr.Button("Get named entities")
|
32 |
ner_btn.click(get_ner, ner_input, ner_output)
|
33 |
|