gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
34.18k stars 2.6k forks source link

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

Open alexeygridnev opened 3 days ago

alexeygridnev commented 3 days ago

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.