Spaces:
Runtime error
Runtime error
Update comment_analyzer.py
Browse files- comment_analyzer.py +4 -2
comment_analyzer.py
CHANGED
@@ -54,6 +54,7 @@ with gr.Blocks() as demo:
|
|
54 |
gr.Markdown("## Generating a Rating from User Comment")
|
55 |
|
56 |
with gr.Row():
|
|
|
57 |
gr.Markdown("""
|
58 |
##### Thanks for your interest and taking your time.
|
59 |
##### Tell us about your personal experience enrolling in this course. Was it the right match for you?
|
@@ -61,9 +62,10 @@ with gr.Blocks() as demo:
|
|
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("####
|
65 |
-
rating = gr.Number(
|
66 |
with gr.Column():
|
|
|
67 |
negscore = gr.Number(label="Negativity Score")
|
68 |
neuscore = gr.Number(label="Neutrality Score")
|
69 |
posscore = gr.Number(label="Positivity Score")
|
|
|
54 |
gr.Markdown("## Generating a Rating from User Comment")
|
55 |
|
56 |
with gr.Row():
|
57 |
+
with gr.Column():
|
58 |
gr.Markdown("""
|
59 |
##### Thanks for your interest and taking your time.
|
60 |
##### Tell us about your personal experience enrolling in this course. Was it the right match for you?
|
|
|
62 |
input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False)
|
63 |
button = gr.Button("What is the Rating I Have Given? Click me to Learn")
|
64 |
|
65 |
+
gr.Markdown("#### Generated Rating from Your Comment")
|
66 |
+
rating = gr.Number()
|
67 |
with gr.Column():
|
68 |
+
gr.Markdown("#### Sentiment Scores of Your Comment")
|
69 |
negscore = gr.Number(label="Negativity Score")
|
70 |
neuscore = gr.Number(label="Neutrality Score")
|
71 |
posscore = gr.Number(label="Positivity Score")
|