Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def merge_tokens(tokens):
|
|
| 20 |
|
| 21 |
def named(input):
|
| 22 |
output = ner(input)
|
| 23 |
-
merged_word =
|
| 24 |
return {'text': input, 'entities': merged_word}
|
| 25 |
|
| 26 |
a = gr.Interface(fn=named,
|
|
|
|
| 20 |
|
| 21 |
def named(input):
|
| 22 |
output = ner(input)
|
| 23 |
+
merged_word = merge_tokens(output)
|
| 24 |
return {'text': input, 'entities': merged_word}
|
| 25 |
|
| 26 |
a = gr.Interface(fn=named,
|