rajistics commited on
Commit
55df0af
1 Parent(s): c319de9
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ with demo:
50
  b3.click(text_to_sentiment, inputs=stext, outputs=label)
51
 
52
  b4 = gr.Button("Extract Companies & Segments")
53
- label = gr.Label()
54
  b4.click(ner, inputs=text, outputs=replaced_spans)
55
 
56
  demo.launch(share=True)
 
50
  b3.click(text_to_sentiment, inputs=stext, outputs=label)
51
 
52
  b4 = gr.Button("Extract Companies & Segments")
53
+ replaced_spans = gr. HighlightedText()
54
  b4.click(ner, inputs=text, outputs=replaced_spans)
55
 
56
  demo.launch(share=True)