Spaces:
Runtime error
Runtime error
Update comment_analyzer.py
Browse files- comment_analyzer.py +5 -4
comment_analyzer.py
CHANGED
@@ -65,10 +65,11 @@ with gr.Blocks() as demo:
|
|
65 |
rating = gr.Number().style(container = True)
|
66 |
with gr.Column():
|
67 |
gr.Markdown("#### Sentiment Scores of Your Comment")
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
72 |
|
73 |
button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
|
74 |
|
|
|
65 |
rating = gr.Number().style(container = True)
|
66 |
with gr.Column():
|
67 |
gr.Markdown("#### Sentiment Scores of Your Comment")
|
68 |
+
with gr.Row():
|
69 |
+
negscore = gr.Number(label="Negativity Score")
|
70 |
+
neuscore = gr.Number(label="Neutrality Score")
|
71 |
+
posscore = gr.Number(label="Positivity Score")
|
72 |
+
compscore = gr.Number(label="Compound Score")
|
73 |
|
74 |
button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
|
75 |
|