I created a streamlit app for data science. The user uploads an image and gets an output with an image displayed, but after deploying the app I'm getting zero rather than an image.
import streamlit as st
@st.cache(allow_output_mutation=True)
def load_image(out):
if out=='yes':
im = PIL.Image.open("images/yes.jpg")
return im
dis = load_image(output)
st.image(dis, channels="RGB)
but after deploying I get:
