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

Update comment_analyzer.py

Browse files
Files changed (1) hide show
  1. comment_analyzer.py +2 -2
comment_analyzer.py CHANGED
@@ -58,15 +58,15 @@ with gr.Blocks() as demo:
58
  ##### Thanks for your interest and taking your time.
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...")
62
  button = gr.Button("What is the Rating I Gave? Click me to Learn")
63
 
64
  gr.Markdown("#### Sentiment Scores of Your Comment")
 
65
  negscore = gr.Number(label="Negativity Score")
66
  neuscore = gr.Number(label="Neutrality Score")
67
  posscore = gr.Number(label="Positivity Score")
68
  compscore = gr.Number(label="Compound Score")
69
- rating = gr.Number(label="Generated Rating from Your Comment")
70
 
71
  button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
72
 
 
58
  ##### Thanks for your interest and taking your time.
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