bstraehle commited on
Commit
56baa98
1 Parent(s): 3267c67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
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
- if data.liked:
81
- print("You upvoted this response: " + data.value["value"])
82
- else:
83
- print("You downvoted this response: " + data.value["value"])
 
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(