Spaces:
Sleeping
Sleeping
Commit
·
765df9f
1
Parent(s):
f6dade0
Update app.py
Browse files
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
|
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()
|