Vishnu-add commited on
Commit
765df9f
·
1 Parent(s): f6dade0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,5 +8,5 @@ def ner(sentence):
8
  ents = [(e.text, e.label_) for e in doc.ents]
9
  return ents
10
 
11
- app = gr.Interface(fn=ner, inputs="text", outputs = "text")
12
  app.launch()
 
8
  ents = [(e.text, e.label_) for e in doc.ents]
9
  return ents
10
 
11
+ app = gr.Interface(fn=ner, inputs="text", outputs=[gr.HighlightedText(label="Text with entites")])
12
  app.launch()