Update app.py
Browse files
app.py
CHANGED
@@ -38,13 +38,13 @@ with gr.Blocks(title="General NER with Color-Coded Output") as demo:
|
|
38 |
gr.Markdown(
|
39 |
"""
|
40 |
# General Entity Recognition Demo
|
41 |
-
This demo selects a random text snippet from
|
42 |
"""
|
43 |
)
|
44 |
|
45 |
# Display a random example
|
46 |
input_text = gr.Textbox(
|
47 |
-
value="
|
48 |
label="Text input",
|
49 |
placeholder="Enter your text here",
|
50 |
lines=5
|
@@ -52,7 +52,7 @@ with gr.Blocks(title="General NER with Color-Coded Output") as demo:
|
|
52 |
|
53 |
with gr.Row() as row:
|
54 |
labels = gr.Textbox(
|
55 |
-
value="
|
56 |
label="Labels",
|
57 |
placeholder="Enter your labels here (comma separated)",
|
58 |
scale=2,
|
|
|
38 |
gr.Markdown(
|
39 |
"""
|
40 |
# General Entity Recognition Demo
|
41 |
+
This demo selects a random text snippet from the British Library's books dataset and identifies entities using GLiNER (urchade/gliner_multi-v2.1).
|
42 |
"""
|
43 |
)
|
44 |
|
45 |
# Display a random example
|
46 |
input_text = gr.Textbox(
|
47 |
+
value="Click on 'Get New Snippet' to load a piece of text from the British Library dataset",
|
48 |
label="Text input",
|
49 |
placeholder="Enter your text here",
|
50 |
lines=5
|
|
|
52 |
|
53 |
with gr.Row() as row:
|
54 |
labels = gr.Textbox(
|
55 |
+
value="Person, Location", # Default example labels
|
56 |
label="Labels",
|
57 |
placeholder="Enter your labels here (comma separated)",
|
58 |
scale=2,
|