Skip to content

A Space that is gr.load-ed doesn't stream and has slow performance #11322

Open
@djaffer

Description

@djaffer

Describe the bug

I have nested gradio, the streaming has a significant lag between directly using the nested gradio vs using the actual gradio.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

Slow performance on the gradio which is nesting another gradio.

https://geeek-askcyph-chat.hf.space

import gradio as gr
import os



with gr.Blocks(fill_height=True,fill_width=True) as demo:
    loaded_demo = gr.load(model, src="spaces", token=token)
demo.launch(show_api=False, show_error=False, quiet=True, debug=False)

Screenshot

Parent gradio working good. Streaming working
Image

Child gradio. Streaming doesn't work and has significant lag.
Image

Logs

System Info

gradio: 5.32.1

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