Spaces:
Runtime error
Runtime error
Update comment_analyzer.py
Browse files- 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
|
63 |
|
64 |
gr.Markdown("#### Sentiment Scores of Your Comment")
|
65 |
rating = gr.Number(label="Generated Rating from Your Comment").style(container=True)
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
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 |
|