max-long commited on
Commit
df09c16
·
verified ·
1 Parent(s): 9daea47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 a subset of the British Library's books dataset and identifies entities using a fine-tuned GLiNER model. You can specify the entities you want to find, and results will be displayed in a color-coded format.
42
  """
43
  )
44
 
45
  # Display a random example
46
  input_text = gr.Textbox(
47
- value="The machine is fed by means of an endless apron, the wool entering at the smaller end...",
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="Machine, Wool", # Default example labels
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,