I was using the method recommended here for sending image bytes to chainlit. It works fine in localhost, but when the application gets deployed in a k8s service and the service gets exposed to users, the image cannot be displayed (although it could be downloaded via the image icon). There is also a link or ID provided for the plot which cannot be used either.
Do you have any idea on how to display the image from a k8s service?
elements = [
cl.Image(name="image1", display="inline", content=image_data)
]
await cl.Message(content=message, elements=elements).send()
I was using the method recommended here for sending image bytes to chainlit. It works fine in localhost, but when the application gets deployed in a k8s service and the service gets exposed to users, the image cannot be displayed (although it could be downloaded via the image icon). There is also a link or ID provided for the plot which cannot be used either.
Do you have any idea on how to display the image from a k8s service?