MAli7319 commited on
Commit
ab2e1ab
·
1 Parent(s): 869a796

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -55,12 +55,15 @@ cons_tuned_svr, _, _, _, _ = sample_model(data, SVR(C=3, kernel="rbf", tol=0.001
55
 
56
 
57
  with gr.Blocks() as demo:
58
- comment = gr.Textbox(label="Thanks for your interest and taking your time.\n"+
59
- "Tell us about your personal experience enrolling in this course. Was it the right match for you?\n"+
60
- "(Note: Comment should be written in English and be longer than 20 characters)\n")
61
- comment_scores = gr.Textbox(label="Sentiment Scores of Your Comment")
62
- rating = gr.Textbox(label="Generated Rating from Your Comment")
63
- greet_btn = gr.Button("What is the Rating I Gave? Click me to Learn")
64
- greet_btn.click(fn=take_input, inputs=comment, outputs=[comment_scores, rating])
 
 
 
65
 
66
  demo.launch()
 
55
 
56
 
57
  with gr.Blocks() as demo:
58
+ gr.Markdown("# AIN311 Project P05 - MOOC Recommendation")
59
+ gr.Markdown("## Generating a Rating from User Comment")
60
+ with gr.Column():
61
+ comment = gr.Textbox(label="Thanks for your interest and taking your time.\n"+
62
+ "Tell us about your personal experience enrolling in this course. Was it the right match for you?\n"+
63
+ "(Note: Comment should be written in English and be longer than 20 characters)\n")
64
+ button = gr.Button("What is the Rating I Gave? Click me to Learn")
65
+ comment_scores = gr.Textbox(label="Sentiment Scores of Your Comment")
66
+ rating = gr.Textbox(label="Generated Rating from Your Comment")
67
+ button.click(fn=take_input, inputs=comment, outputs=[comment_scores, rating])
68
 
69
  demo.launch()