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

gr.LinePlot causes the entire Gradio app not responsive if the value=None. #10162

Open
1 task done
maxkskhor opened this issue Dec 9, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working Regression Bugs did not exist in previous versions of Gradio

Comments

@maxkskhor
Copy link

Describe the bug

gr.LinePlot causes the entire Gradio app not responsive if the value=None (which is the default value).

Using value=pd.DataFrame() will solve the issue.

This issue could be problematic for developers who set the LinePlot component to be visible=False with the value defaulted to None, in which case their apps will not be responsive.

It worked in Gradio version 4 but not 5.

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.Text('Hello')
    with gr.Tab('Tab 2'):
        gr.Text('World')

    gr.LinePlot(None)


if __name__ == '__main__':
    demo.launch()

Screenshot

image

Logs

No logs. Gradio app not responsive.

System Info

Gradio Environment Information:
------------------------------
Operating System: Windows
gradio version: 5.8.0
gradio_client version: 1.5.1

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

aiofiles: 23.2.1
anyio: 4.7.0
audioop-lts is not installed.
fastapi: 0.115.6
ffmpy: 0.4.0
gradio-client==1.5.1 is not installed.
httpx: 0.28.1
huggingface-hub: 0.26.5
jinja2: 3.1.4
markupsafe: 2.1.5
numpy: 2.2.0
orjson: 3.10.12
packaging: 24.2
pandas: 2.2.3
pillow: 11.0.0
pydantic: 2.10.3
pydub: 0.25.1
python-multipart: 0.0.19
pyyaml: 6.0.2
ruff: 0.8.2
safehttpx: 0.1.6
semantic-version: 2.10.0
starlette: 0.41.3
tomlkit: 0.13.2
typer: 0.15.1
typing-extensions: 4.12.2
urllib3: 2.2.3
uvicorn: 0.32.1
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2024.10.0
httpx: 0.28.1
huggingface-hub: 0.26.5
packaging: 24.2
typing-extensions: 4.12.2
websockets: 14.1

Severity

I can work around it

@maxkskhor maxkskhor added the bug Something isn't working label Dec 9, 2024
@abidlabs abidlabs added the Regression Bugs did not exist in previous versions of Gradio label Dec 9, 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 Regression Bugs did not exist in previous versions of Gradio
Projects
None yet
Development

No branches or pull requests

2 participants