Skip to content

Typo in the parameter visible in templates.py#2805

Merged
abidlabs merged 10 commits into
mainfrom
visible-typo
Dec 13, 2022
Merged

Typo in the parameter visible in templates.py#2805
abidlabs merged 10 commits into
mainfrom
visible-typo

Conversation

@abidlabs
Copy link
Copy Markdown
Member

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2805-all-demos

@abidlabs abidlabs marked this pull request as ready for review December 13, 2022 07:32
@abidlabs
Copy link
Copy Markdown
Member Author

Going through the components, I realized the requires_permissions parameters is no longer used, so I removed that as well

Copy link
Copy Markdown
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @abidlabs !

Comment thread gradio/components.py
show_label: bool = True,
interactive: Optional[bool] = None,
visible: bool = True,
requires_permissions: bool = False,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this deleted?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We used to use requires_permissions to figure out if a component needed to request permissions in colab and print a message accordingly. We don't do need to do that anymore. (So unrelated to the original reason I made this PR, but when I saw it, I figured I'd just remove it)

Comment thread gradio/templates.py
show_label=show_label,
interactive=interactive,
visibile=visible,
visible=visible,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

@abidlabs
Copy link
Copy Markdown
Member Author

Thanks for reviewing @freddyaboulton!

@abidlabs abidlabs merged commit 39ffe9d into main Dec 13, 2022
@abidlabs abidlabs deleted the visible-typo branch December 13, 2022 19:48
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

Successfully merging this pull request may close these issues.

2 participants