Huu076 commited on
Commit
82c499b
1 Parent(s): 1a4eebf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -89,7 +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 = 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")
 
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
+ print(threshold)
94
  nested_ner = gr.Checkbox(label="Nested NER", info="Allow for nested NER?")
95
  output = gr.HighlightedText(label="Predicted Entities")
96
  submit_btn = gr.Button("Submit")