MAli7319 commited on
Commit
c945e4d
·
1 Parent(s): 607c675

Update comment_analyzer.py

Browse files
Files changed (1) hide show
  1. comment_analyzer.py +4 -2
comment_analyzer.py CHANGED
@@ -54,6 +54,7 @@ with gr.Blocks() as demo:
54
  gr.Markdown("## Generating a Rating from User Comment")
55
 
56
  with gr.Row():
 
57
  gr.Markdown("""
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?
@@ -61,9 +62,10 @@ with gr.Blocks() as demo:
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")
66
  with gr.Column():
 
67
  negscore = gr.Number(label="Negativity Score")
68
  neuscore = gr.Number(label="Neutrality Score")
69
  posscore = gr.Number(label="Positivity Score")
 
54
  gr.Markdown("## Generating a Rating from User Comment")
55
 
56
  with gr.Row():
57
+ with gr.Column():
58
  gr.Markdown("""
59
  ##### Thanks for your interest and taking your time.
60
  ##### Tell us about your personal experience enrolling in this course. Was it the right match for you?
 
62
  input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False)
63
  button = gr.Button("What is the Rating I Have Given? Click me to Learn")
64
 
65
+ gr.Markdown("#### Generated Rating from Your Comment")
66
+ rating = gr.Number()
67
  with gr.Column():
68
+ gr.Markdown("#### Sentiment Scores of Your Comment")
69
  negscore = gr.Number(label="Negativity Score")
70
  neuscore = gr.Number(label="Neutrality Score")
71
  posscore = gr.Number(label="Positivity Score")