MAli7319 commited on
Commit
5c133e7
·
1 Parent(s): 9a3f206

Update comment_analyzer.py

Browse files
Files changed (1) hide show
  1. comment_analyzer.py +7 -7
comment_analyzer.py CHANGED
@@ -59,15 +59,15 @@ with gr.Blocks() as demo:
59
  """)
60
  input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False)
61
  button = gr.Button("What is the Rating I Have Given? Click me to Learn")
62
- with gr.Column():
63
  gr.Markdown("#### Generated Rating from Your Comment")
64
  rating = gr.Number()
65
- with gr.Column():
66
- gr.Markdown("#### Sentiment Scores of Your Comment")
67
- negscore = gr.Number(label="Negativity Score")
68
- neuscore = gr.Number(label="Neutrality Score")
69
- posscore = gr.Number(label="Positivity Score")
70
- compscore = gr.Number(label="Compound Score")
71
 
72
  button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
73
 
 
59
  """)
60
  input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False)
61
  button = gr.Button("What is the Rating I Have Given? Click me to Learn")
62
+ with gr.Row():
63
  gr.Markdown("#### Generated Rating from Your Comment")
64
  rating = gr.Number()
65
+ with gr.Column():
66
+ gr.Markdown("#### Sentiment Scores of Your Comment")
67
+ negscore = gr.Number(label="Negativity Score")
68
+ neuscore = gr.Number(label="Neutrality Score")
69
+ posscore = gr.Number(label="Positivity Score")
70
+ compscore = gr.Number(label="Compound Score")
71
 
72
  button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
73