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
32.24k stars 2.41k forks source link

Change label of Examples in ChatInterface #6604

Open canytam-krystal opened 9 months ago

canytam-krystal commented 9 months ago

Is your feature request related to a problem? Please describe.
I am using ChatInterface to make multi-language application, but the label of Examples is also English and cannot find any way to change it.

Describe the solution you'd like
Can you add a parameter to the ChatInterface so we can set the label content?

abidlabs commented 9 months ago

Hi @canytam-krystal can you elaborate a little more, what do you mean? You can set the examples parameter to be any text string in any language?

canytam-krystal commented 9 months ago

Screenshot from 2023-11-29 15-19-23 In the above image, you can see the label ('Examples') is still in English but my content is in Chinese. Can you provide a way to change the label so I can put Chinese label there. Actually, gradio.Examples has a parameter 'label' that can change the label content but gradio.ChatInterface has no such option.

abidlabs commented 9 months ago

Ah I see, that makes sense. Yes this is something we allow users to customize