Spaces:
Runtime error
Runtime error
Commit
·
7d7ce6f
1
Parent(s):
1785439
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,5 @@ def ner(sentence):
|
|
7 |
doc = nlp(sentence)
|
8 |
ents = [(e.text, e.label_) for e in doc.ents]
|
9 |
return ents,ents
|
10 |
-
|
11 |
app = gr.Interface(fn=ner, inputs="text", outputs=["text",gr.HighlightedText(label="Text with entites")])
|
12 |
app.launch()
|
|
|
7 |
doc = nlp(sentence)
|
8 |
ents = [(e.text, e.label_) for e in doc.ents]
|
9 |
return ents,ents
|
|
|
10 |
app = gr.Interface(fn=ner, inputs="text", outputs=["text",gr.HighlightedText(label="Text with entites")])
|
11 |
app.launch()
|