Skip to content

Setting value of CheckboxGroup to an integer causes an infinite loading loop. #2562

@taesiri

Description

@taesiri

Describe the bug

Hello,

Setting value of a ChecboxGroup to an integer prevents the demo from loading.

That's all!

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

Minimal code to reproduce

import gradio as gr

def dummy(values):
    return "OK"

demo = gr.Interface(
    dummy, [gr.CheckboxGroup(["checkbox 1", "checkbox 2", "checkbox 3"], value=0)], "text"
)

if __name__ == "__main__":
    demo.launch()

Screenshot

loading

Logs

There is no crash, so I am ignoring this one.

System Info

Gradio: `3.7`
Windows: Version 10.0.19044.2130
Happens on both Firefox and Chrome

Severity

annoying

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions