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

Restore some missing imports in __init__ #4566

Merged
merged 5 commits into from Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,7 @@ No changes to highlight.

## Bug Fixes:

- Restored missing imports in `gr.components` by [@abidlabs](https://github.com/abidlabs) in [PR 4566](https://github.com/gradio-app/gradio/pull/4566)
- Fix bug where `select` event was not triggered in `gr.Gallery` if `height` was set to be large with `allow_preview=False` by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 4551](https://github.com/gradio-app/gradio/pull/4551)

## Other Changes:
Expand Down
8 changes: 8 additions & 0 deletions gradio/components/__init__.py
Expand Up @@ -2,8 +2,12 @@
from gradio.components.audio import Audio
from gradio.components.bar_plot import BarPlot
from gradio.components.base import (
Column,
Component,
Form,
FormComponent,
IOComponent,
Row,
Comment on lines +5 to +10
Copy link
Member Author

Choose a reason for hiding this comment

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

It would be better for users to import Column, Form, and Row from gr.layouts instead of gr.components, but for the sake of backwards compatibility, I have included them here

_Keywords,
component,
get_component_instance,
Expand Down Expand Up @@ -66,9 +70,12 @@
"CheckboxGroup",
"Code",
"ColorPicker",
"Column",
"Dataframe",
"DataFrame",
"Dataset",
"Form",
"FormComponent",
"Gallery",
"HTML",
"Image",
Expand Down Expand Up @@ -96,6 +103,7 @@
"Number",
"Plot",
"Radio",
"Row",
"ScatterPlot",
"Slider",
"State",
Expand Down