Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,10 +59,10 @@ with gr.Blocks() as demo:
|
|
| 59 |
gr.Markdown("# AIN311 Project P05 - MOOC Recommendation")
|
| 60 |
gr.Markdown("## Generating a Rating from User Comment")
|
| 61 |
with gr.Column():
|
| 62 |
-
|
| 63 |
"#### Tell us about your personal experience enrolling in this course. Was it the right match for you?\n"+
|
| 64 |
-
"#### (Note: Comment should be written in English and be longer than 20 characters)\n"
|
| 65 |
-
|
| 66 |
button = gr.Button("What is the Rating I Gave? Click me to Learn")
|
| 67 |
gr.Markdown("#### Sentiment Scores of Your Comment")
|
| 68 |
negscore = gr.Number(label="Negativity Score")
|
|
@@ -70,6 +70,6 @@ with gr.Blocks() as demo:
|
|
| 70 |
posscore = gr.Number(label="Positivity Score")
|
| 71 |
compscore = gr.Number(label="Compound Score")
|
| 72 |
rating = gr.Number(label="Generated Rating from Your Comment")
|
| 73 |
-
button.click(fn=take_input, inputs=comment, outputs=[negscore, neuscore, posscore, compscore, rating])
|
| 74 |
|
| 75 |
demo.launch()
|
|
|
|
| 59 |
gr.Markdown("# AIN311 Project P05 - MOOC Recommendation")
|
| 60 |
gr.Markdown("## Generating a Rating from User Comment")
|
| 61 |
with gr.Column():
|
| 62 |
+
gr.Markdown("### Thanks for your interest and taking your time." +
|
| 63 |
"#### Tell us about your personal experience enrolling in this course. Was it the right match for you?\n"+
|
| 64 |
+
"#### (Note: Comment should be written in English and be longer than 20 characters)\n")
|
| 65 |
+
comment = gr.Textbox(placeholder="Write your comment here...")
|
| 66 |
button = gr.Button("What is the Rating I Gave? Click me to Learn")
|
| 67 |
gr.Markdown("#### Sentiment Scores of Your Comment")
|
| 68 |
negscore = gr.Number(label="Negativity Score")
|
|
|
|
| 70 |
posscore = gr.Number(label="Positivity Score")
|
| 71 |
compscore = gr.Number(label="Compound Score")
|
| 72 |
rating = gr.Number(label="Generated Rating from Your Comment")
|
| 73 |
+
button.click(fn=take_input(cons_tuned_svr), inputs=comment, outputs=[negscore, neuscore, posscore, compscore, rating])
|
| 74 |
|
| 75 |
demo.launch()
|