New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upvote/Downvote Functionality Issue #5871
Comments
Ah, interesting. I don't think any logic has been in place to ensure that you can only upvote or downvote. It makes sense to only allow one or the other! |
Also, it would be ideal if only the chosen option remained visible throughout the chat session. Thanks @hannahblair. |
Do we really want to make this change? Wouldn't it be better to let a user define the appropriate behavior in their own function? For example, if they want to disregards subsequent likes/dislikes of the same message, they can do that by handling this in their function. Or if they want to keep the final vote of a user, they can do that. This change would prevent a user from changing their mind -- perhaps they meant to click button but accidentally clicked on the other one. Also as an side, I don't think we should keep changing the Chatbot UI unless there's a good reason to do so -- otherwise, it will be hard for users to build consistent downstream applications. |
This makes sense to me too. However, I would kindly like to suggest one minor enhancement. It would be beneficial to ensure that when a user changes their vote from Upvote to Downvote (or vice versa) on a chat message, the previously selected voting button is automatically unchecked. Presently, both buttons remain checked if the user has interacted with both of them. While it is possible to address this issue programmatically, as demonstrated in my example, the current user interface behavior might potentially confuse users. chatbot.voting.2.mp4
Thanks for sharing your concern. I find it valid too, consistency is important for users building complex applications downstream (for example, text gen web ui). Therefore, I won't insist too strongly on the enhancement, as I mentioned in the ticket that this is something we can address with workarounds. |
This makes sense to me! |
Has this feature been removed in the latest version |
It shouldn't have been. Can you please share a small code snippet where it's not working as intended? Thank you! |
Could this be the issue? likable disabled It does have like |
Found the issue @surajspass. Opening a PR now |
thank you :) |
Describe the bug
When a user upvotes or downvotes a chat message, the functionality should reflect the selected vote, visually indicating that it has been clicked, and subsequently disable further clicks on the same button. Additionally, the other vote button should disappear to prevent multiple votes on the same message.
Currently, you can click on the upvote or downvote button multiple times. While the color of the button changes to indicate that it has been clicked, it remains clickable, and the other vote button doesn't disappear as expected.
Have you searched existing issues? 🔎
Reproduction
Screenshot
The below video explains what is currently happening -
gradio.chatbot.mp4
The below video explains how ChatGpt handles such a situation -
chatgpt.mp4
Logs
No response
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: