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

Customize the examples in ChatInterface #8233

Closed
1 task done
yvrjsharma opened this issue May 7, 2024 · 0 comments · Fixed by #8244
Closed
1 task done

Customize the examples in ChatInterface #8233

yvrjsharma opened this issue May 7, 2024 · 0 comments · Fixed by #8244
Labels
💬 Chatbot Related to the Chatbot component

Comments

@yvrjsharma
Copy link
Collaborator

yvrjsharma commented May 7, 2024

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

Is your feature request related to a problem? Please describe.
It seems that customizing examples in gr.ChatInterface is not possible, unlike the chatbot and textbox. If I try to pass my own gr.Examples to customize the parameter, I get the below-mentioned error:

ValueError: The parameter examples must either be a string directory or a list(if there is only 1 input component) or (more generally), a nested list, where each sublist represents a set of inputs.

I am trying to customize the examples in ChatInterface so that the number of examples per page is set to a lower value. Examples are shown below the app so a fewer examples would mean more screen space for a chatbot window.

Describe the solution you'd like
The solution could be to either allow this customization of examples in ChatInterface similar to textbox and chatbot or to add a parameter examples_per_page to the ChatInterface component. This would greatly enhance the flexibility and usability of the component.

Additional context
Idefics demo could serve as an example here:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 Chatbot Related to the Chatbot component
Projects
None yet
2 participants