saattrupdan commited on
Commit
a0c13a8
1 Parent(s): f4175b5

feat: Add first example into input by default

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,9 +26,9 @@ def main():
26
  return {"text": text, "entities": output}
27
 
28
  demo = gr.Interface(
29
- ner,
30
- gr.Textbox(placeholder="Enter sentence here..."),
31
- gr.HighlightedText(),
32
  examples=examples,
33
  title="Scandinavian Named Entity Recognition",
34
  description="""
 
26
  return {"text": text, "entities": output}
27
 
28
  demo = gr.Interface(
29
+ fn=ner,
30
+ inputs=gr.Textbox(placeholder="Enter sentence here...", value=examples[0]),
31
+ outputs=gr.HighlightedText(),
32
  examples=examples,
33
  title="Scandinavian Named Entity Recognition",
34
  description="""