VTechAI commited on
Commit
52f9a64
·
1 Parent(s): 98ee0aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -131,12 +131,12 @@ with block:
131
  inputs[feedback].save_feedback(like=1, feedback_str=inputs[feedback_textbox])
132
  gr.Info('Thanks for your feedback')
133
  return {feedback:inputs[feedback],feedback_textbox:None}
134
- upvote_button.click(on_upvote_button_click,components,[feedback, feedback_textbox], queue=False)
135
  def on_downvote_button_click(inputs):
136
  inputs[feedback].save_feedback(like=-1, feedback_str=inputs[feedback_textbox])
137
  gr.Info('Thanks for your feedback')
138
  return {feedback:inputs[feedback],feedback_textbox:None}
139
- downvote_button.click(on_downvote_button_click,components,[feedback, feedback_textbox], queue=False)
140
  if __name__ == '__main__':
141
  block.queue()
142
  block.launch()
 
131
  inputs[feedback].save_feedback(like=1, feedback_str=inputs[feedback_textbox])
132
  gr.Info('Thanks for your feedback')
133
  return {feedback:inputs[feedback],feedback_textbox:None}
134
+ #upvote_button.click(on_upvote_button_click,components,[feedback, feedback_textbox], queue=False)
135
  def on_downvote_button_click(inputs):
136
  inputs[feedback].save_feedback(like=-1, feedback_str=inputs[feedback_textbox])
137
  gr.Info('Thanks for your feedback')
138
  return {feedback:inputs[feedback],feedback_textbox:None}
139
+ #downvote_button.click(on_downvote_button_click,components,[feedback, feedback_textbox], queue=False)
140
  if __name__ == '__main__':
141
  block.queue()
142
  block.launch()