Huu076 commited on
Commit
3ec12b1
·
verified ·
1 Parent(s): a0f13e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,8 +89,8 @@ def process(
89
  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 = 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(
 
89
  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 = False #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(