gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
32k stars 2.38k forks source link

No response when using gr.image in chatinterface in second round #8812

Closed tyc333 closed 1 month ago

tyc333 commented 1 month ago

Describe the bug

If I use gr.image or other components as chatbot response in chatinterface, it will just work at the first time, but not work any more then.

Have you searched existing issues? 🔎

Reproduction

import gradio as gr

def echo(message, history):
    return gr.Image(
            "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
        )

demo = gr.ChatInterface(
    fn=echo,
    title="Echo Bot",
)
demo.launch()

Screenshot

image

Logs

No response

System Info

gradio 4.38

Severity

I can work around it

abidlabs commented 1 month ago

Thanks @tyc333 I can repro. We'll take a look at this as soon as we can!