Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,8 +61,8 @@ def run(history, text, image, audio_upload, audio_mic):
|
|
| 61 |
return history, None, None, None, None
|
| 62 |
|
| 63 |
|
| 64 |
-
def print_like_dislike(x: gr.LikeData):
|
| 65 |
-
|
| 66 |
|
| 67 |
|
| 68 |
def add_text(history, text):
|
|
@@ -109,7 +109,7 @@ with gr.Blocks() as demo:
|
|
| 109 |
run, [chatbot, None, None, btn], [chatbot, None, None, None]
|
| 110 |
)
|
| 111 |
|
| 112 |
-
chatbot.like(print_like_dislike, None, None)
|
| 113 |
|
| 114 |
demo.queue()
|
| 115 |
demo.launch()
|
|
|
|
| 61 |
return history, None, None, None, None
|
| 62 |
|
| 63 |
|
| 64 |
+
# def print_like_dislike(x: gr.LikeData):
|
| 65 |
+
# print(x.index, x.value, x.liked)
|
| 66 |
|
| 67 |
|
| 68 |
def add_text(history, text):
|
|
|
|
| 109 |
run, [chatbot, None, None, btn], [chatbot, None, None, None]
|
| 110 |
)
|
| 111 |
|
| 112 |
+
# chatbot.like(print_like_dislike, None, None)
|
| 113 |
|
| 114 |
demo.queue()
|
| 115 |
demo.launch()
|