Skip to content
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

gr.Chatbot - Bind share button to user function #10216

Open
Steveolas opened this issue Dec 17, 2024 · 1 comment
Open

gr.Chatbot - Bind share button to user function #10216

Steveolas opened this issue Dec 17, 2024 · 1 comment
Labels
needs designing The proposed feature needs to be discussed and designed before being implemented

Comments

@Steveolas
Copy link

  • [ ✔️ ] I have searched to see if a similar issue already exists.

Gradios gr.Chatbot has a show_share_button parameter that from my understanding has very limited use whithin huggingface spaces. I would like to be able to map this button to whatever function I like, with an event listener such as .share. Same as exists for the other buttons such as like, clear reset and undo.

Even better, (and more complicated) add a posibility to add custom buttons whithin the chatbot, both in the bot level (such as clear and share are cutrrently) and in the message level (such as cope, undo, retry). Let the user add their own icon and bind that button to their own function

Seems to me like implementation should not be to complicated because the process to making such buttons already exists, but I am not familiar with the source code.

Thanks
Ilan

@abidlabs
Copy link
Member

Thanks @Steveolas for creating this issue, cc @pngwn on similar discussion for gr.ImageEditor

@abidlabs abidlabs added the needs designing The proposed feature needs to be discussed and designed before being implemented label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs designing The proposed feature needs to be discussed and designed before being implemented
Projects
None yet
Development

No branches or pull requests

2 participants