Spaces:
Runtime error
Runtime error
Update comment_analyzer.py
Browse files- comment_analyzer.py +8 -9
comment_analyzer.py
CHANGED
|
@@ -53,14 +53,6 @@ with gr.Blocks() as demo:
|
|
| 53 |
##### Tell us about your personal experience enrolling in this course. Was it the right match for you?
|
| 54 |
""")
|
| 55 |
input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False, lines=2)
|
| 56 |
-
gr.Examples(
|
| 57 |
-
[["Totally enjoyed this course. Learnt whole new dimension of data science and its attributes"],
|
| 58 |
-
["The bad part of the course is that it doesn't get a person into the logics of some things right away or even doesn't get into them at all."],
|
| 59 |
-
["Not for the beginners very difficult to understand i gain nothing from this course i watch videos again and again but nothing fits in my mind"]],
|
| 60 |
-
[input_comment],
|
| 61 |
-
[[negscore, neuscore, posscore, compscore, rating]],
|
| 62 |
-
fn=take_input
|
| 63 |
-
)
|
| 64 |
button = gr.Button("What is the Rating I Have Given? Click me to Learn", variant="secondary").style(full_width=True)
|
| 65 |
with gr.Row():
|
| 66 |
with gr.Column():
|
|
@@ -74,7 +66,14 @@ with gr.Blocks() as demo:
|
|
| 74 |
posscore = gr.Number(label="Positivity Score")
|
| 75 |
compscore = gr.Number(label="Compound Score")
|
| 76 |
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
|
| 79 |
|
| 80 |
demo.launch()
|
|
|
|
| 53 |
##### Tell us about your personal experience enrolling in this course. Was it the right match for you?
|
| 54 |
""")
|
| 55 |
input_comment = gr.Textbox(placeholder="Write your comment here...", show_label = False, lines=2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
button = gr.Button("What is the Rating I Have Given? Click me to Learn", variant="secondary").style(full_width=True)
|
| 57 |
with gr.Row():
|
| 58 |
with gr.Column():
|
|
|
|
| 66 |
posscore = gr.Number(label="Positivity Score")
|
| 67 |
compscore = gr.Number(label="Compound Score")
|
| 68 |
|
| 69 |
+
gr.Examples(
|
| 70 |
+
[["Totally enjoyed this course. Learnt whole new dimension of data science and its attributes"],
|
| 71 |
+
["The bad part of the course is that it doesn't get a person into the logics of some things right away or even doesn't get into them at all."],
|
| 72 |
+
["Not for the beginners very difficult to understand i gain nothing from this course i watch videos again and again but nothing fits in my mind"]],
|
| 73 |
+
[input_comment],
|
| 74 |
+
[[negscore, neuscore, posscore, compscore, rating]],
|
| 75 |
+
fn=take_input
|
| 76 |
+
)
|
| 77 |
button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
|
| 78 |
|
| 79 |
demo.launch()
|