Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -76,11 +76,12 @@ def chat(message, msg2, history):
|
|
76 |
return extract_content_values(messages)[0]
|
77 |
|
78 |
def vote(data: gr.LikeData):
|
79 |
-
print(data)
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
|
|
84 |
|
85 |
"""
|
86 |
gr.ChatInterface(
|
|
|
76 |
return extract_content_values(messages)[0]
|
77 |
|
78 |
def vote(data: gr.LikeData):
|
79 |
+
print(data.value)
|
80 |
+
print(data.value["value"])
|
81 |
+
#if data.liked:
|
82 |
+
# print("You upvoted this response: " + data.value["value"])
|
83 |
+
#else:
|
84 |
+
# print("You downvoted this response: " + data.value["value"])
|
85 |
|
86 |
"""
|
87 |
gr.ChatInterface(
|