Huu076 commited on
Commit
a094a33
·
verified ·
1 Parent(s): e0e82d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,8 +81,8 @@ def process(
81
  with gr.Blocks(title="Open Information Extracting") as open_ie_interface:
82
  prompt = gr.Textbox(label="Prompt", placeholder="Enter your prompt here")
83
  input_text = gr.Textbox(label="Text input", placeholder="Enter your text here")
84
- 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.")
85
- nested_ner = False #gr.Checkbox(label="Nested NER", info="Allow for nested NER?")
86
  output = gr.HighlightedText(label="Predicted Entities")
87
  submit_btn = gr.Button("Submit")
88
  examples = gr.Examples(
 
81
  with gr.Blocks(title="Open Information Extracting") as open_ie_interface:
82
  prompt = gr.Textbox(label="Prompt", placeholder="Enter your prompt here")
83
  input_text = gr.Textbox(label="Text input", placeholder="Enter your text here")
84
+ threshold = gr.Slider(0, 1, value=0.3, step=0.01, label="Threshold", info="Lower the threshold to increase how many entities get predicted.")
85
+ nested_ner = gr.Checkbox(label="Nested NER", info="Allow for nested NER?")
86
  output = gr.HighlightedText(label="Predicted Entities")
87
  submit_btn = gr.Button("Submit")
88
  examples = gr.Examples(