geekyutao / Inpaint-Anything

Inpaint anything using Segment Anything and inpainting models.
Apache License 2.0
6.4k stars 525 forks source link

TypeError: Button.__init__() got an unexpected keyword argument 'label' #153

Open sbmatch opened 4 months ago

sbmatch commented 4 months ago

when i try to execute the app.py script ,console report an error TypeError: Button.init() got an unexpected keyword argument 'label' (venv310) sbmatch@LAPTOP-DIE38HFA:/mnt/d/sbmatch/Downloads/Compressed/Inpaint-Anything/app$

Ang-Wei-Liang commented 4 months ago

Try changing the 'label' to 'value'

You can also check the properties of Button.init using the following before the statement (if using gradio)

help(gr.Button)