Spaces:
Sleeping
Sleeping
File size: 501 Bytes
d8a070a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import gradio as gr
class UISettings:
"""
Utility class for managing UI settings.
"""
@staticmethod
def feedback(data: gr.LikeData):
"""
Process user feedback on the generated response.
Parameters:
data (gr.LikeData): Gradio LikeData object containing user feedback.
"""
if data.liked:
print("You upvoted this response: " + data.value)
else:
print("You downvoted this response: " + data.value)
|