Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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([])
|