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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,6 +61,6 @@ with gr.Blocks() as demo:
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=greet, inputs=comment, outputs=[comment_scores, rating])
65
 
66
  demo.launch()
 
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()