MAli7319 commited on
Commit
91d2eb2
·
1 Parent(s): ee72d9a

Update comment_analyzer.py

Browse files
Files changed (1) hide show
  1. comment_analyzer.py +5 -4
comment_analyzer.py CHANGED
@@ -65,10 +65,11 @@ with gr.Blocks() as demo:
65
  rating = gr.Number().style(container = True)
66
  with gr.Column():
67
  gr.Markdown("#### Sentiment Scores of Your Comment")
68
- negscore = gr.Number(label="Negativity Score")
69
- neuscore = gr.Number(label="Neutrality Score")
70
- posscore = gr.Number(label="Positivity Score")
71
- compscore = gr.Number(label="Compound Score")
 
72
 
73
  button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
74
 
 
65
  rating = gr.Number().style(container = True)
66
  with gr.Column():
67
  gr.Markdown("#### Sentiment Scores of Your Comment")
68
+ with gr.Row():
69
+ negscore = gr.Number(label="Negativity Score")
70
+ neuscore = gr.Number(label="Neutrality Score")
71
+ posscore = gr.Number(label="Positivity Score")
72
+ compscore = gr.Number(label="Compound Score")
73
 
74
  button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
75