gradio
gradio copied to clipboard
Export `Tabs` type from `@gradio/tabs` and fix the Playground to be compatible with the new Tabs API
Description
Fix the bug at https://www.gradio.app/playground. <Tabs> now requires the initial_tabs prop.
20.BbLaLaJX.js:315 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'findIndex')
at Jk (20.BbLaLaJX.js:315:16140)
at K (index.DLy6jnDj.js:1:1499)
at new Zk (20.BbLaLaJX.js:315:18293)
at Bm (20.BbLaLaJX.js:2394:985)
at Array.E_ (20.BbLaLaJX.js:2401:3828)
at mt (scheduler.sY3Ewlbx.js:1:840)
at i_ (20.BbLaLaJX.js:315:22957)
at K (index.DLy6jnDj.js:1:1698)
at new l_ (20.BbLaLaJX.js:315:25177)
at M_ (20.BbLaLaJX.js:2401:6971)
🪼 branch checks and previews
| • | Name | Status | URL |
|---|---|---|---|
| Spaces | Spaces preview | ||
| Website | |||
| Storybook | Storybook preview | ||
| :unicorn: | Changes |
Install Gradio from this PR
pip install https://gradio-pypi-previews.s3.amazonaws.com/8d8341c6220bb638b05616b0ae0e4407e268c48f/gradio-5.1.0-py3-none-any.whl
Install Gradio Python Client from this PR
pip install "gradio-client @ git+https://github.com/gradio-app/gradio@8d8341c6220bb638b05616b0ae0e4407e268c48f#subdirectory=client/python"
Install Gradio JS Client from this PR
npm install https://gradio-npm-previews.s3.amazonaws.com/8d8341c6220bb638b05616b0ae0e4407e268c48f/gradio-client-1.7.0.tgz
Use Lite from this PR
<script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/8d8341c6220bb638b05616b0ae0e4407e268c48f/dist/lite.js""></script>
🦄 change detected
This Pull Request includes changes to the following packages.
| Package | Version |
|---|---|
@gradio/tabs |
patch |
gradio |
patch |
website |
patch |
- [ ] Maintainers can select this checkbox to manually select packages to update.
With the following changelog entry.
Export
Tabstype from@gradio/tabsand fix the Playground to be compatible with the new Tabs API
Maintainers or the PR author can modify the PR title to modify this entry.
Something isn't right?
- Maintainers can change the version label to modify the version bump.
- If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.
Thanks! Like this?
Yep. That's perfect.
Thanks folks! Merging in to reduce the number of open PRs