CheckboxGroup with Gradio
Learn how to create a group of checkboxes beyond just a toggle!
We'll cover the following...
The CheckboxGroup
class
Sometimes, we need a checkbox that has multiple options, rather than just a toggle between True
and False
. For example, if we wanted to create a group of checkboxes where users can select multiple items to be true (e.g. tick all foods that the user likes), it would be too cumbersome to define a checkbox for each item.
Press + to interact
A CheckboxGroup
in Gradio creates a set of checkboxes, from which a subset can be selected. We can instantiate a CheckboxGroup
as follows:
gr.CheckboxGroup()
or with theInterface
string shortcut'checkboxgroup'
Press + to interact
If it is passed as an ...
Access this course and 1400+ top-rated courses and projects.