gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Export `Tabs` type from `@gradio/tabs` and fix the Playground to be compatible with the new Tabs API

Open whitphx opened this issue 1 year ago • 4 comments

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)

CleanShot 2024-10-17 at 10 32 30@2x

whitphx avatar Oct 17 '24 01:10 whitphx

🪼 branch checks and previews

• Name Status URL
Spaces ready! Spaces preview
Website building...
Storybook ready! Storybook preview
:unicorn: Changes detecting...

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>

gradio-pr-bot avatar Oct 17 '24 01:10 gradio-pr-bot

🦄 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 Tabs type from @gradio/tabs and 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.

gradio-pr-bot avatar Oct 17 '24 01:10 gradio-pr-bot

Thanks! Like this?

whitphx avatar Oct 17 '24 08:10 whitphx

Yep. That's perfect.

pngwn avatar Oct 17 '24 09:10 pngwn

Thanks folks! Merging in to reduce the number of open PRs

abidlabs avatar Oct 17 '24 18:10 abidlabs