Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def named(input):
|
|
20 |
merged_words = merged_words(output)
|
21 |
return {'text': input, 'entities': merged_words}
|
22 |
|
23 |
-
a = gr.Interface(fn=
|
24 |
inputs=[gr.Textbox(label="Text input", lines= 2)],
|
25 |
outputs=[gr.HighlightedText(label='Text with entities')],
|
26 |
title='Named Entity Recognition', examples=["My name is Andrew, I'm building DeeplearningAI and I live in California", "My name is Poli, I live in Vienna and work at HuggingFace"])
|
|
|
20 |
merged_words = merged_words(output)
|
21 |
return {'text': input, 'entities': merged_words}
|
22 |
|
23 |
+
a = gr.Interface(fn=named,
|
24 |
inputs=[gr.Textbox(label="Text input", lines= 2)],
|
25 |
outputs=[gr.HighlightedText(label='Text with entities')],
|
26 |
title='Named Entity Recognition', examples=["My name is Andrew, I'm building DeeplearningAI and I live in California", "My name is Poli, I live in Vienna and work at HuggingFace"])
|