MAli7319 commited on
Commit
970dfe5
·
1 Parent(s): d2905e7

Update comment_analyzer.py

Browse files
Files changed (1) hide show
  1. comment_analyzer.py +8 -0
comment_analyzer.py CHANGED
@@ -65,6 +65,14 @@ 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
 
69
  button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
70
 
 
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
+ examples=[["One of the best course I have ever taken",
70
+ "Not very impressive, definitions are not detailed enough, instructor is decent",
71
+ "Terrible presentation of knowledge, i can not convince you to take this course, waste of time"]],
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