GPalomeque
commited on
Commit
·
aa42b04
1
Parent(s):
3d2e947
Update app.py
Browse files
app.py
CHANGED
@@ -44,10 +44,10 @@ def get_entities(example):
|
|
44 |
output.extend([(example[item["end"]:len(example)], None)])
|
45 |
|
46 |
return output
|
47 |
-
|
48 |
-
|
49 |
-
entidades =
|
50 |
-
|
51 |
|
52 |
iface = gr.Interface(fn=get_entities, inputs="text", outputs=['highlight'], examples=examples, title="Test of jurisbert-finetuning-ner ",)
|
53 |
iface.launch()
|
|
|
44 |
output.extend([(example[item["end"]:len(example)], None)])
|
45 |
|
46 |
return output
|
47 |
+
|
48 |
+
def process(example):
|
49 |
+
entidades = get_entities(example)
|
50 |
+
return entidades
|
51 |
|
52 |
iface = gr.Interface(fn=get_entities, inputs="text", outputs=['highlight'], examples=examples, title="Test of jurisbert-finetuning-ner ",)
|
53 |
iface.launch()
|