Closed sumitsahoo closed 5 months ago
Hi @sumitsahoo the gr.ChatInterface
high-level class does not support sending multiple user messages back. You need to send a single message, although you could potentially include images or audio by rendering the HTML, e.g.
def bot(message, history):
return "And here is the image <br> <img src=...> <br> and here is the audio: <br> <audio src="...">"
For more flexibility in creating demos, you would need to create a Chatbot component using the low-level Blocks class, as described here: https://www.gradio.app/guides/creating-a-custom-chatbot-with-blocks
Thanks, workaround works for now 👍🏻
Describe the bug
I want to create a chatbot that can respond in multiple messages instead of just one bubble. Here is a sample code:
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it