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

Tab visibility attribute problem in gradio v5 #9648

Closed
1 task done
pambram opened this issue Oct 10, 2024 · 0 comments · Fixed by #9653
Closed
1 task done

Tab visibility attribute problem in gradio v5 #9648

pambram opened this issue Oct 10, 2024 · 0 comments · Fixed by #9653
Assignees
Labels
bug Something isn't working Priority High priority issues Regression Bugs did not exist in previous versions of Gradio

Comments

@pambram
Copy link

pambram commented Oct 10, 2024

Describe the bug

The Visible attribute of the Tab component does not work to show or hide the tab, as described in the documentation and as it works in other components, but to make the Tab unclickable

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

with gr.Blocks() as demo:
    with gr.Tab("Tab 1"):
        gr.HTML("This is Tab 1")
        gr.Button()
    with gr.Tab("Tab 2", visible=False):
        gr.HTML("This is Tab 2")
        gr.Button()

demo.launch()

Screenshot

image

Logs

No response

System Info

Gradio Environment Information:
------------------------------
Operating System: Darwin
gradio version: 5.0.0
gradio_client version: 1.4.0

------------------------------------------------
gradio dependencies in your environment:

aiofiles: 23.2.1
anyio: 4.4.0
fastapi: 0.115.0
ffmpy: 0.4.0
gradio-client==1.4.0 is not installed.
httpx: 0.27.2
huggingface-hub: 0.25.2
jinja2: 3.1.4
markupsafe: 2.1.5
numpy: 1.26.4
orjson: 3.10.7
packaging: 24.1
pandas: 2.2.2
pillow: 10.4.0
pydantic: 2.9.2
pydub: 0.25.1
python-multipart: 0.0.9
pyyaml: 6.0.2
ruff: 0.6.4
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.5
typing-extensions: 4.12.2
urllib3: 2.2.2
uvicorn: 0.31.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2024.6.1
httpx: 0.27.2
huggingface-hub: 0.25.2
packaging: 24.1
typing-extensions: 4.12.2
websockets: 12.0

Severity

I can work around it

@pambram pambram added the bug Something isn't working label Oct 10, 2024
@abidlabs abidlabs added Priority High priority issues Regression Bugs did not exist in previous versions of Gradio labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority High priority issues Regression Bugs did not exist in previous versions of Gradio
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@pambram @abidlabs @hannahblair and others