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

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

Open
sbmatch opened this issue May 10, 2024 · 1 comment
Open

Comments

@sbmatch
Copy link

sbmatch commented May 10, 2024

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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants