Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,11 +70,11 @@ with gr.Blocks() as demo:
|
|
| 70 |
|
| 71 |
with gr.Column():
|
| 72 |
gr.Markdown("""
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
""")
|
| 77 |
-
|
| 78 |
button = gr.Button("What is the Rating I Gave? Click me to Learn")
|
| 79 |
gr.Markdown("#### Sentiment Scores of Your Comment")
|
| 80 |
negscore = gr.Number(label="Negativity Score")
|
|
@@ -82,6 +82,6 @@ with gr.Blocks() as demo:
|
|
| 82 |
posscore = gr.Number(label="Positivity Score")
|
| 83 |
compscore = gr.Number(label="Compound Score")
|
| 84 |
rating = gr.Number(label="Generated Rating from Your Comment")
|
| 85 |
-
button.click(fn=take_input, inputs=
|
| 86 |
|
| 87 |
demo.launch()
|
|
|
|
| 70 |
|
| 71 |
with gr.Column():
|
| 72 |
gr.Markdown("""
|
| 73 |
+
##### Thanks for your interest and taking your time.
|
| 74 |
+
##### Tell us about your personal experience enrolling in this course. Was it the right match for you?
|
| 75 |
+
##### (Note: Comment should be written in English and be longer than 20 characters)
|
| 76 |
""")
|
| 77 |
+
input_comment = gr.Textbox(placeholder="Write your comment here...")
|
| 78 |
button = gr.Button("What is the Rating I Gave? Click me to Learn")
|
| 79 |
gr.Markdown("#### Sentiment Scores of Your Comment")
|
| 80 |
negscore = gr.Number(label="Negativity Score")
|
|
|
|
| 82 |
posscore = gr.Number(label="Positivity Score")
|
| 83 |
compscore = gr.Number(label="Compound Score")
|
| 84 |
rating = gr.Number(label="Generated Rating from Your Comment")
|
| 85 |
+
button.click(fn=take_input, inputs=input_comment, outputs=[negscore, neuscore, posscore, compscore, rating])
|
| 86 |
|
| 87 |
demo.launch()
|