michaelmc1618 commited on
Commit
9a3a8b0
·
verified ·
1 Parent(s): 7039cd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -200,6 +200,10 @@ def bot(history):
200
  time.sleep(0.05)
201
  yield history
202
 
 
 
 
 
203
  with gr.Blocks(css=custom_css) as demo:
204
  history1 = gr.State([])
205
  history2 = gr.State([])
 
200
  time.sleep(0.05)
201
  yield history
202
 
203
+ # Function to handle likes and dislikes
204
+ def print_like_dislike(x: gr.LikeData):
205
+ print(x.index, x.value, x.liked)
206
+
207
  with gr.Blocks(css=custom_css) as demo:
208
  history1 = gr.State([])
209
  history2 = gr.State([])