Ashish08 commited on
Commit
a99b369
1 Parent(s): cb27a07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -74,7 +74,9 @@ with demo:
74
  gr.Markdown(description)
75
  interface = gr.Interface(fn=ner,
76
  inputs=[gr.Textbox(label="Text to find entities", lines=10)],
77
- outputs=[gr.HighlightedText(label="Text with entities")],
 
 
78
  allow_flagging="never",
79
  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"])
80
 
 
74
  gr.Markdown(description)
75
  interface = gr.Interface(fn=ner,
76
  inputs=[gr.Textbox(label="Text to find entities", lines=10)],
77
+ outputs=[gr.HighlightedText(label="Text with entities",
78
+ combine_adjacent=True,
79
+ show_legend=True)],
80
  allow_flagging="never",
81
  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"])
82