Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
85 |
-
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(
|