MAli7319 commited on
Commit
6a88159
·
1 Parent(s): f354ce2

Update comment_analyzer.py

Browse files
Files changed (1) hide show
  1. comment_analyzer.py +9 -8
comment_analyzer.py CHANGED
@@ -53,6 +53,14 @@ with gr.Blocks() as demo:
53
  ##### Tell us about your personal experience enrolling in this course. Was it the right match for you?
54
  """)
55
  input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False, lines=2)
 
 
 
 
 
 
 
 
56
  button = gr.Button("What is the Rating I Have Given? Click me to Learn", variant="secondary").style(full_width=True)
57
  with gr.Row():
58
  with gr.Column():
@@ -65,14 +73,7 @@ with gr.Blocks() as demo:
65
  neuscore = gr.Number(label="Neutrality Score")
66
  posscore = gr.Number(label="Positivity Score")
67
  compscore = gr.Number(label="Compound Score")
68
- gr.Examples(
69
- [["Totally enjoyed this course. Learnt whole new dimension of data science and its attributes"],
70
- ["The bad part of the course is that it doesn't get a person into the logics of some things right away or even doesn't get into them at all."],
71
- ["Not for the beginners very difficult to understand i gain nothing from this course i watch videos again and again but nothing fits in my mind"]],
72
- [input_comment],
73
- [[negscore, neuscore, posscore, compscore, rating]],
74
- fn=take_input
75
- )
76
 
77
  button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
78
 
 
53
  ##### Tell us about your personal experience enrolling in this course. Was it the right match for you?
54
  """)
55
  input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False, lines=2)
56
+ gr.Examples(
57
+ [["Totally enjoyed this course. Learnt whole new dimension of data science and its attributes"],
58
+ ["The bad part of the course is that it doesn't get a person into the logics of some things right away or even doesn't get into them at all."],
59
+ ["Not for the beginners very difficult to understand i gain nothing from this course i watch videos again and again but nothing fits in my mind"]],
60
+ [input_comment],
61
+ [[negscore, neuscore, posscore, compscore, rating]],
62
+ fn=take_input
63
+ )
64
  button = gr.Button("What is the Rating I Have Given? Click me to Learn", variant="secondary").style(full_width=True)
65
  with gr.Row():
66
  with gr.Column():
 
73
  neuscore = gr.Number(label="Neutrality Score")
74
  posscore = gr.Number(label="Positivity Score")
75
  compscore = gr.Number(label="Compound Score")
76
+
 
 
 
 
 
 
 
77
 
78
  button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
79