MAli7319 commited on
Commit
8448570
·
1 Parent(s): 2e51b08

Update comment_analyzer.py

Browse files
Files changed (1) hide show
  1. comment_analyzer.py +6 -5
comment_analyzer.py CHANGED
@@ -59,14 +59,15 @@ with gr.Blocks() as demo:
59
  ##### Tell us about your personal experience enrolling in this course. Was it the right match for you?
60
  """)
61
  input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False)
62
- button = gr.Button("What is the Rating I Gave? Click me to Learn")
63
 
64
  gr.Markdown("#### Sentiment Scores of Your Comment")
65
  rating = gr.Number(label="Generated Rating from Your Comment").style(container=True)
66
- negscore = gr.Number(label="Negativity Score")
67
- neuscore = gr.Number(label="Neutrality Score")
68
- posscore = gr.Number(label="Positivity Score")
69
- compscore = gr.Number(label="Compound Score")
 
70
 
71
  button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
72
 
 
59
  ##### Tell us about your personal experience enrolling in this course. Was it the right match for you?
60
  """)
61
  input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False)
62
+ button = gr.Button("What is the Rating I Have Given? Click me to Learn")
63
 
64
  gr.Markdown("#### Sentiment Scores of Your Comment")
65
  rating = gr.Number(label="Generated Rating from Your Comment").style(container=True)
66
+ with gr.Row():
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