Skip to content

demo.load() hangs indefinitely when gr.Chatbot is placed in a row with other components in gradio>=6.1.0 #12849

@sergey21000

Description

@sergey21000

Describe the bug

When trying to display a gr.Chatbot in the same row as other components using gr.Row() in gradio versions 6.1.0 and above, demo.load() runs indefinitely. This does not happen in gradio<=6.0.2.

You can also reproduce the issue in this Google Colab notebook:
https://colab.research.google.com/drive/14YBzOZVZu-gVIrEPPpGyMGJ1PQNYOlIT

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

Minimal reproducible example:

import gradio as gr

with gr.Blocks() as demo:
    with gr.Tab('Tab 1'):
        with gr.Row():
            gr.Chatbot()
            with gr.Column():
                gr.Slider()
                gr.Slider()
                gr.Slider()
                    
    with gr.Tab('Tab 2'):
        textbox = gr.Textbox()

    demo.load(
        fn=lambda: 'some text',
        inputs=None,
        outputs=textbox,
    )

demo.launch()

Workarounds found:

  1. Placing the chatbot on its own row works:
with gr.Row():
    gr.Chatbot()
with gr.Column():
    gr.Slider()
    ...
  1. Removing the second tab also resolves the issue.

Screenshot

Expected behavior:

Image

Actual behavior:

Image

Logs

* Running on local URL:  http://127.0.0.1:7860
* To create a public link, set `share=True` in `launch()`.

System Info

- Gradio version: >=6.1.0 (broken)
- Gradio version: <=6.0.2 (works)
- Python version: 3.12
- OS: Windows/Linux

Severity

I can work around it

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions