Spaces:
Runtime error
Runtime error
Update comment_analyzer.py
Browse files- comment_analyzer.py +9 -8
comment_analyzer.py
CHANGED
@@ -60,14 +60,15 @@ with gr.Blocks() as demo:
|
|
60 |
input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False)
|
61 |
button = gr.Button("What is the Rating I Have Given? Click me to Learn")
|
62 |
with gr.Row():
|
63 |
-
gr.
|
64 |
-
|
65 |
-
|
66 |
-
gr.
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
71 |
|
72 |
button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
|
73 |
|
|
|
60 |
input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False)
|
61 |
button = gr.Button("What is the Rating I Have Given? Click me to Learn")
|
62 |
with gr.Row():
|
63 |
+
with gr.Column():
|
64 |
+
gr.Markdown("#### Generated Rating from Your Comment")
|
65 |
+
rating = gr.Number().style(container = True)
|
66 |
+
with gr.Column():
|
67 |
+
gr.Markdown("#### Sentiment Scores of Your Comment")
|
68 |
+
negscore = gr.Number(label="Negativity Score")
|
69 |
+
neuscore = gr.Number(label="Neutrality Score")
|
70 |
+
posscore = gr.Number(label="Positivity Score")
|
71 |
+
compscore = gr.Number(label="Compound Score")
|
72 |
|
73 |
button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
|
74 |
|