✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Converting img from imread to appropriate format in html.Img(src =<required_format>)

For completeness, I am adding the app.layout that’s relevant for this example,

As you can see in the image below, after uploading the image, I am filtering the imgs(which I also stored in a numpy array using imread) below but they are all np arrays

I want to display the img onto the webpage but I dont know how to convert np arrays to html.Img (drc = <my_required_format>) as shown in the figure below: