Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ def merged_words(tokens):
|
|
17 |
|
18 |
def named(input):
|
19 |
output = ner(input)
|
20 |
-
|
21 |
-
return {'text': input, 'entities':
|
22 |
|
23 |
a = gr.Interface(fn=named,
|
24 |
inputs=[gr.Textbox(label="Text input", lines= 2)],
|
|
|
17 |
|
18 |
def named(input):
|
19 |
output = ner(input)
|
20 |
+
merged_word = merged_words(output)
|
21 |
+
return {'text': input, 'entities': merged_word}
|
22 |
|
23 |
a = gr.Interface(fn=named,
|
24 |
inputs=[gr.Textbox(label="Text input", lines= 2)],
|