Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,10 +66,7 @@ cons_tuned_svr, _, _, _, _ = sample_model(data, SVR(C=3, kernel="rbf", tol=0.001
|
|
66 |
with gr.Blocks() as demo:
|
67 |
gr.Markdown("# AIN311 Project P05 - MOOC Recommendation")
|
68 |
gr.Markdown("## Generating a Rating from User Comment")
|
69 |
-
|
70 |
-
# Hello World!
|
71 |
-
Start typing below to see the output.
|
72 |
-
"""
|
73 |
with gr.Column():
|
74 |
gr.Markdown("""
|
75 |
### Thanks for your interest and taking your time.
|
@@ -84,6 +81,6 @@ with gr.Blocks() as demo:
|
|
84 |
posscore = gr.Number(label="Positivity Score")
|
85 |
compscore = gr.Number(label="Compound Score")
|
86 |
rating = gr.Number(label="Generated Rating from Your Comment")
|
87 |
-
button.click(fn=take_input(cons_tuned_svr), inputs=
|
88 |
|
89 |
demo.launch()
|
|
|
66 |
with gr.Blocks() as demo:
|
67 |
gr.Markdown("# AIN311 Project P05 - MOOC Recommendation")
|
68 |
gr.Markdown("## Generating a Rating from User Comment")
|
69 |
+
|
|
|
|
|
|
|
70 |
with gr.Column():
|
71 |
gr.Markdown("""
|
72 |
### Thanks for your interest and taking your time.
|
|
|
81 |
posscore = gr.Number(label="Positivity Score")
|
82 |
compscore = gr.Number(label="Compound Score")
|
83 |
rating = gr.Number(label="Generated Rating from Your Comment")
|
84 |
+
button.click(fn=take_input(cons_tuned_svr), inputs="text", outputs=[negscore, neuscore, posscore, compscore, rating])
|
85 |
|
86 |
demo.launch()
|