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

Gradio 5 ChatInterface: internationalize popup text for retry, undo, and clear buttons #10020

Open
alexeygridnev opened this issue Nov 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@alexeygridnev
Copy link

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

Is your feature request related to a problem? Please describe.
Retry, Undo and Clear buttons are now parts of the Chatbot component of ChatInterface, and there does not seem to be a way to customize the text which is shown when you move your mouse to the button (it says "Retry", "Undo" and "Clear" for the respective buttons). For fully multilingual interfaces, it is useful to be able to change this text.

Describe the solution you'd like
Add parameters "submit_btn", "undo_btn" and "clear_btn" to ChatInterface where you would be able to indicate the popup text you want to see on moving the mouse to the element .

Additional context
Might also be useful to be able set those parameters above to None (like "submit_btn" and "stop_btn" parameters), which is useful if a user doesn't need some of this buttons but doesn't want to construct the chat interface completely from scratch.

@abidlabs abidlabs changed the title Gradio 5 ChatInterface: custom popup text for retry, undo, and clear buttons? Gradio 5 ChatInterface: internationalize popup text for retry, undo, and clear buttons Nov 23, 2024
@abidlabs abidlabs added the enhancement New feature or request label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants