Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ with gr.Blocks(title="NER Task") as ner_interface:
|
|
90 |
input_text = gr.Textbox(label="Text input", placeholder="Enter your text here")
|
91 |
labels = gr.Textbox(label="Labels", placeholder="Enter your labels here (comma separated)", scale=2)
|
92 |
threshold = 0.5 #gr.Slider(0, 1, value=0.3, step=0.01, label="Threshold", info="Lower the threshold to increase how many entities get predicted.")
|
93 |
-
nested_ner =
|
94 |
output = gr.HighlightedText(label="Predicted Entities")
|
95 |
submit_btn = gr.Button("Submit")
|
96 |
examples = gr.Examples(
|
|
|
90 |
input_text = gr.Textbox(label="Text input", placeholder="Enter your text here")
|
91 |
labels = gr.Textbox(label="Labels", placeholder="Enter your labels here (comma separated)", scale=2)
|
92 |
threshold = 0.5 #gr.Slider(0, 1, value=0.3, step=0.01, label="Threshold", info="Lower the threshold to increase how many entities get predicted.")
|
93 |
+
nested_ner = gr.Checkbox(label="Nested NER", info="Allow for nested NER?")
|
94 |
output = gr.HighlightedText(label="Predicted Entities")
|
95 |
submit_btn = gr.Button("Submit")
|
96 |
examples = gr.Examples(
|