Can someone help me to make this a loop or it can be a loop? I am new to python and streamlit library hehehe. I want to learn also here for my betterment. Thank youuu!
c1,c2,c3,c4,c5, c6, c7 = st.beta_columns(7)
with c1:
fig1 = plt.figure(figsize=(14,8))
fig1.suptitle("Gray Eqhist")
plt.imshow(gray_eqhist, 'gray')
st.pyplot(fig1)
with c2:
fig2 = plt.figure(figsize=(14,8))
fig2.suptitle("Applied Clahe")
plt.imshow(applied_clahe, 'gray')
st.pyplot(fig2)
with c3:
fig3 = plt.figure(figsize=(14,8))
fig3.suptitle("Binary")
plt.imshow(thresh1, 'gray')
st.pyplot(fig3)
with c4:
fig4 = plt.figure(figsize=(14,8))
fig4.suptitle("Binary Threshold Inverted")
plt.imshow(thresh2, 'gray')
st.pyplot(fig4)
with c5:
fig5 = plt.figure(figsize=(14,8))
fig5.suptitle("Truncated Threshold")
plt.imshow(thresh3, 'gray')
st.pyplot(fig5)
with c6:
fig6 = plt.figure(figsize=(14,8))
fig6.suptitle("Set to 0")
plt.imshow(thresh4, 'gray')
st.pyplot(fig6)
with c7:
fig7 = plt.figure(figsize=(14,8))
fig7.suptitle("Set to 0 Inverted")
plt.imshow(thresh5, 'gray')
st.pyplot(fig7)