Open
Description
Describe the bug
I'm using the image streaming feature in my Gradio project. However, this feature appears to have stopped working since [email protected].
Previously, I enabled image streaming by setting streaming=True
on the gr.Image
component. This worked as expected in [email protected], where the right output image would update in real-time as the left input image changed in the example.
Starting from [email protected], however, setting streaming=True
seems to have no effect. The output image no longer updates in sync with the input image. This behavior is the same whether streaming=True
is set or not.
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.Row():
with gr.Column():
input_img = gr.Image(label="Input", sources="webcam")
with gr.Column():
output_img = gr.Image(label="Output", streaming=True)
input_img.stream(lambda s: s, input_img, output_img, time_limit=15, stream_every=0.1, concurrency_limit=30)
if __name__ == "__main__":
demo.launch()
Screenshot
No response
Logs
System Info
Gradio Environment Information:
------------------------------
Operating System: Windows
gradio version: 5.27.0
gradio_client version: 1.9.0
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 24.1.0
anyio: 4.9.0
audioop-lts is not installed.
fastapi: 0.115.12
ffmpy: 0.5.0
gradio-client==1.9.0 is not installed.
groovy: 0.1.2
httpx: 0.28.1
huggingface-hub: 0.31.2
jinja2: 3.1.6
markupsafe: 3.0.2
numpy: 1.26.4
orjson: 3.10.18
packaging: 25.0
pandas: 2.2.3
pillow: 11.2.1
pydantic: 2.11.4
pydub: 0.25.1
python-multipart: 0.0.20
pyyaml: 6.0.2
ruff: 0.11.10
safehttpx: 0.1.6
semantic-version: 2.10.0
starlette: 0.46.2
tomlkit: 0.13.2
typer: 0.15.4
typing-extensions: 4.13.2
urllib3: 2.4.0
uvicorn: 0.34.2
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.
gradio_client dependencies in your environment:
fsspec: 2025.3.2
httpx: 0.28.1
huggingface-hub: 0.31.2
packaging: 25.0
typing-extensions: 4.13.2
websockets: 15.0.1
Severity
Blocking usage of gradio