I am using two file uploaders inside the same function. The first file uploader works well , however, second file uploader is not activated but goes back to the first uploader.
def apps():
text = None
passport = st.file_uploader("Upload Passport", type=["png", "jpg"], key="passport")
if passport:
button = st.button("Print")
if button:
text = st.write(passport.name)
if text:
st.success(text)
verify_button = st.sidebar.button("Verify Face")
if verify_button:
photo = st.sidebar.file_uploader("UPLOAD PHOTO", type=["png", "jpg"], key="photo")
Kindly suggest what could be improved in this code to fix this.