Hi there i want to display image in my streamlit web app using a button.
So whenever user clicks the button the image must be displayed onto the streamlit web app.
the code given below.
task2 = ['3-marla', '5-marla', '7-marla', '10-marla', '1-kanal']
feature_choice2 = st.sidebar.multiselect("Plot Size", task2)
if st.button('Find Blueprint'):
if feature_choice2 == '3-marla':
imagee = cv2.imread('Floor_plans/3-marla.png')
cv2.imshow('Image', imagee)
st.image(imagee, caption='3 marla plot')