MAli7319 commited on
Commit
ef0c21a
·
1 Parent(s): 894dbf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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=str(comment), outputs=[negscore, neuscore, posscore, compscore, rating])
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()