The Gradio demo web UI (app.py) passes an outdated or incorrect argument to the Gradio Button class (label ), causing a TypeError when the Button class does not accept this label attribute, leading to a failure of the web UI.
This pull request addresses an issue in the Gradio demo web UI (app.py), where an outdated or incorrect argument (label) get passed to the Gradio Button class, which causes a TypeError when the Button class did not accept it, leading to a failure in the web UI. This pull request updates the code to use the label argument based on its availability as a Button attribute.
Changes Made
Adjusted the Gradio Button instantiation in app.py to resolve the issue.
Context
The original code might have been written for an older version of Gradio, where label was a valid argument. However, the current version does not support this argument, and the code needed adjustment.
Checklist
[x] I have tested the changes locally.
[x] My code follows the coding conventions of the Inpaint-Anything project.
Description
The Gradio demo web UI (
app.py
) passes an outdated or incorrect argument to the Gradio Button class (label
), causing aTypeError
when theButton
class does not accept thislabel
attribute, leading to a failure of the web UI.This pull request addresses an issue in the Gradio demo web UI (
app.py
), where an outdated or incorrect argument (label
) get passed to the GradioButton
class, which causes aTypeError
when theButton
class did not accept it, leading to a failure in the web UI. This pull request updates the code to use thelabel
argument based on its availability as a Button attribute.Changes Made
Button
instantiation inapp.py
to resolve the issue.Context
The original code might have been written for an older version of Gradio, where
label
was a valid argument. However, the current version does not support this argument, and the code needed adjustment.Checklist